瀏覽代碼

minor optm

vcptr 6 年之前
父節點
當前提交
3b9514ec9f
共有 1 個文件被更改,包括 1 次插入4 次删除
  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 {