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 ...@@ -101,7 +101,9 @@ module Ci
end end
def detailed_status(current_user) 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 end
def manual? def manual?
......
...@@ -337,7 +337,9 @@ module Ci ...@@ -337,7 +337,9 @@ module Ci
end end
def detailed_status(current_user) 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 end
private private
......
...@@ -23,7 +23,9 @@ module Ci ...@@ -23,7 +23,9 @@ module Ci
end end
def detailed_status(current_user) 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 end
def statuses def statuses
......
...@@ -133,6 +133,8 @@ class CommitStatus < ActiveRecord::Base ...@@ -133,6 +133,8 @@ class CommitStatus < ActiveRecord::Base
end end
def detailed_status(current_user) 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
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