vcptr %!s(int64=6) %!d(string=hai) anos
pai
achega
3b9514ec9f
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  1. 1 4
      app/dns/server.go

+ 1 - 4
app/dns/server.go

@@ -53,10 +53,7 @@ func (c *MultiGeoIPMatcher) Match(ip net.IP) bool {
 
 // HasMatcher check has matcher
 func (c *MultiGeoIPMatcher) HasMatcher() bool {
-	if len(c.matchers) > 0 {
-		return true
-	}
-	return false
+	return len(c.matchers) > 0
 }
 
 func generateRandomTag() string {