Commit 5f590a71 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Improve readability in methods for detailed status

parent a91a95b2
......@@ -101,7 +101,9 @@ module Ci
end
def detailed_status(current_user)
Gitlab::Ci::Status::Build::Factory.new(self, current_user).fabricate!
Gitlab::Ci::Status::Build::Factory
.new(self, current_user)
.fabricate!
end
def manual?
......
......@@ -337,7 +337,9 @@ module Ci
end
def detailed_status(current_user)
Gitlab::Ci::Status::Pipeline::Factory.new(self, current_user).fabricate!
Gitlab::Ci::Status::Pipeline::Factory
.new(self, current_user)
.fabricate!
end
private
......
......@@ -23,7 +23,9 @@ module Ci
end
def detailed_status(current_user)
Gitlab::Ci::Status::Stage::Factory.new(self, current_user).fabricate!
Gitlab::Ci::Status::Stage::Factory
.new(self, current_user)
.fabricate!
end
def statuses
......
......@@ -133,6 +133,8 @@ class CommitStatus < ActiveRecord::Base
end
def detailed_status(current_user)
Gitlab::Ci::Status::Factory.new(self, current_user).fabricate!
Gitlab::Ci::Status::Factory
.new(self, current_user)
.fabricate!
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment