diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-07-17 15:59:07 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-07-18 14:46:22 +0200 |
commit | 5b119a9dc85943b3f60868a347a814e767c9840c (patch) | |
tree | 48f1fa1251e659e90ad722f4eccc4f2414b15079 /app | |
parent | 4faaa62aad6b71c681fc67c5ae1e3b47cfcf18b2 (diff) | |
download | gitlab-ce-5b119a9dc85943b3f60868a347a814e767c9840c.tar.gz |
Fix rubocop offenses
Diffstat (limited to 'app')
-rw-r--r-- | app/models/ci/build.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb index 248ecd71962..c9566560461 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -107,8 +107,8 @@ module Ci def play(current_user = nil) # Try to queue a current build if self.queue - self.update(user: current_user) - self + self.update(user: current_user) + self else # Otherwise we need to create a duplicate Ci::Build.retry(self, current_user) |