diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-03-08 12:34:45 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-03-08 12:35:17 +0100 |
commit | 5ca2005e0448eeeed2cab7390a89284eb0aef2e0 (patch) | |
tree | 30341d966ca77f2056b9e7af2cf49c42d4ec0d7b | |
parent | 4c2a6f0d9ce9b4c4e0f28c4e8a0232f8ca8a29e5 (diff) | |
download | gitlab-ce-5ca2005e0448eeeed2cab7390a89284eb0aef2e0.tar.gz |
Fix Rubocop offense in CI/CD stage codefix/gb/passed-with-warnings-status-on-mysql
-rw-r--r-- | app/models/ci/stage.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/stage.rb b/app/models/ci/stage.rb index b60bb9c6de0..e7d6b17d445 100644 --- a/app/models/ci/stage.rb +++ b/app/models/ci/stage.rb @@ -46,7 +46,7 @@ module Ci end def has_warnings? - if @warnings.is_a?(Fixnum) + if @warnings.is_a?(Integer) @warnings > 0 else statuses.latest.failed_but_allowed.any? |