diff options
| author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-10-17 16:13:19 +0200 |
|---|---|---|
| committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-10-17 16:13:19 +0200 |
| commit | 9b790f1cf97157240178601c62d2e557a404503e (patch) | |
| tree | 5013faeb348f3b68c5066742bac575026d6e74a7 /app/models/deployment.rb | |
| parent | 50d3cc2b677dac855a6270f5ffed7085df8edcf8 (diff) | |
| download | gitlab-ce-9b790f1cf97157240178601c62d2e557a404503e.tar.gz | |
Improve after code review
Diffstat (limited to 'app/models/deployment.rb')
| -rw-r--r-- | app/models/deployment.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/deployment.rb b/app/models/deployment.rb index f6cccae4334..1f8c5fb3d85 100644 --- a/app/models/deployment.rb +++ b/app/models/deployment.rb @@ -85,13 +85,14 @@ class Deployment < ActiveRecord::Base end def stop_action + return nil unless on_stop.present? return nil unless manual_actions @stop_action ||= manual_actions.find_by(name: on_stop) end def stoppable? - on_stop.present? && stop_action.present? + stop_action.present? end def formatted_deployment_time |
