From 5ca2005e0448eeeed2cab7390a89284eb0aef2e0 Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Wed, 8 Mar 2017 12:34:45 +0100 Subject: Fix Rubocop offense in CI/CD stage code --- app/models/ci/stage.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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? -- cgit v1.2.1