Merge pull request #360 from highb/2020-03-05_unsafe_rubocop_fixes

"Unsafe" rubocop fixes
This commit is contained in:
mattkirby 2020-03-05 16:03:21 -08:00 committed by GitHub
commit f85f5126e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 46 additions and 9 deletions

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Vmpooler
class API
class Dashboard < Sinatra::Base

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Vmpooler
class API

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Vmpooler
class API
class Reroute < Sinatra::Base

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Vmpooler
class API
class V1 < Sinatra::Base
@ -934,7 +936,7 @@ module Vmpooler
end
end
if failure.size > 0
if !failure.empty?
status 400
result['failure'] = failure
else