mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-27 05:48:41 -05:00
(rubocop) Fix Style/IfUnlessModifier
This commit is contained in:
parent
c7c8e48e2f
commit
7bafee35a7
7 changed files with 15 additions and 45 deletions
|
|
@ -20,9 +20,7 @@ class Auth
|
|||
end
|
||||
|
||||
def self.delete_token(verbose, url, user, password, token)
|
||||
if token.nil?
|
||||
raise TokenError, 'You did not provide a token'
|
||||
end
|
||||
raise TokenError, 'You did not provide a token' if token.nil?
|
||||
|
||||
conn = Http.get_conn_with_auth(verbose, url, user, password)
|
||||
|
||||
|
|
@ -36,9 +34,7 @@ class Auth
|
|||
end
|
||||
|
||||
def self.token_status(verbose, url, token)
|
||||
if token.nil?
|
||||
raise TokenError, 'You did not provide a token'
|
||||
end
|
||||
raise TokenError, 'You did not provide a token' if token.nil?
|
||||
|
||||
conn = Http.get_conn(verbose, url)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue