diff --git a/app/dns/server.go b/app/dns/server.go index 86fbcae4..c1c85e93 100644 --- a/app/dns/server.go +++ b/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 {