mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-09-11 17:08:02 +02:00
Use unless instead of if not
This commit is contained in:
parent
fd954b550a
commit
4316c379eb
@ -203,7 +203,7 @@ module Md5LookupUtility
|
||||
result = ''
|
||||
|
||||
# Hmm, no proper response :-(
|
||||
return result if !res || res.code != 200
|
||||
return result unless res && res.code == 200
|
||||
|
||||
begin
|
||||
json = JSON.parse(res.body)
|
||||
|
Loading…
Reference in New Issue
Block a user