omit comparison to bool constant, can be simplified to !cloakedName.isIP
Reported by GitHub's code scanning
This commit is contained in:
parent
b9d6b22ce1
commit
fbfc2d57a7
|
@ -87,7 +87,7 @@ func (plugin *PluginCloak) Init(proxy *Proxy) error {
|
|||
cloakedName.lineNo = lineNo + 1
|
||||
cloakedNames[line] = cloakedName
|
||||
|
||||
if !plugin.createPTR || strings.Contains(line, "*") || !cloakedName.isIP == true {
|
||||
if !plugin.createPTR || strings.Contains(line, "*") || !cloakedName.isIP {
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue