all: fix nilness issues

Signed-off-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:
Matt Layher
2023-12-05 10:32:35 -05:00
committed by Andrew Dunham
parent c5208f8138
commit a217f1fccf
7 changed files with 5 additions and 18 deletions
+1 -2
View File
@@ -444,8 +444,7 @@ func (p *Prefs) Equals(p2 *Prefs) bool {
return false
}
return p != nil && p2 != nil &&
p.ControlURL == p2.ControlURL &&
return p.ControlURL == p2.ControlURL &&
p.RouteAll == p2.RouteAll &&
p.AllowSingleHosts == p2.AllowSingleHosts &&
p.ExitNodeID == p2.ExitNodeID &&