mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-04 13:47:39 +03:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue