Fix Rubocop offense in CI/CD stage code

This commit is contained in:
Grzegorz Bizon 2017-03-08 12:34:45 +01:00
parent 4c2a6f0d9c
commit 5ca2005e04
1 changed files with 1 additions and 1 deletions

View File

@ -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?