diff options
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r-- | app/models/commit.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb index da755bc..1d3f214 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -224,12 +224,7 @@ class Commit < ActiveRecord::Base def skip_ci? commits = push_data[:commits] - - if commits.present? && commits.last[:message] =~ /(\[ci skip\])/ - true - else - false - end + commits.present? && commits.last[:message] =~ /(\[ci skip\])/ end private |