mirror of
https://github.com/nmap/nmap.git
synced 2025-12-24 08:29:04 +00:00
Add clarifying parentheses to complex boolean statements as needed.
This commit is contained in:
@@ -414,7 +414,7 @@ Helper = {
|
||||
if ( status and result.status == 401 and result.headers['www-authenticate'] ) then
|
||||
|
||||
local auth = self:getOption(options, "auth")
|
||||
if ( not(auth) or not(auth.username) and not(auth.password) ) then
|
||||
if not(auth and auth.username and auth.password) then
|
||||
stdnse.debug2("No authentication information")
|
||||
return status, result
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user