"Unsafe" rubocop fixes

Adds the remaining "unsafe" fixes that aren't included in #359
This commit is contained in:
Brandon High 2020-03-05 11:16:43 -08:00
parent 252a2c2344
commit f22a84f26f
No known key found for this signature in database
GPG key ID: 270079C784FCAFDE
19 changed files with 46 additions and 9 deletions

View file

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