summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorwinniehell <git@winniehell.de>2017-02-13 13:02:53 +0100
committerwinniehell <git@winniehell.de>2017-02-13 13:02:53 +0100
commit81eae63b7a4c601a8b64f8f1c1820ba8a4f40050 (patch)
tree1e5ff687bddd69582d6b954588e9eee485d9eb60 /app/models
parent2cb70671f3c90a4ade7b4d04dcffc927b6cee75c (diff)
downloadgitlab-ce-81eae63b7a4c601a8b64f8f1c1820ba8a4f40050.tar.gz
Use safe navigation operator to make rubocop happy
Diffstat (limited to 'app/models')
-rw-r--r--app/models/environment.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/environment.rb b/app/models/environment.rb
index 803060b3979..1a21b5e52b5 100644
--- a/app/models/environment.rb
+++ b/app/models/environment.rb
@@ -126,7 +126,7 @@ class Environment < ActiveRecord::Base
return unless available?
stop!
- stop_action.play(current_user) if stop_action
+ stop_action&.play(current_user)
end
def actions_for(environment)