Style: cleanup code

This commit is contained in:
Dreamacro
2021-03-24 01:00:21 +08:00
parent 807d53c1e7
commit d759d16944
9 changed files with 40 additions and 50 deletions

View File

@ -122,11 +122,7 @@ func (t *DomainTrie) search(node *Node, parts []string) *Node {
}
}
if c := node.getChild(dotWildcard); c != nil {
return c
}
return nil
return node.getChild(dotWildcard)
}
// New returns a new, empty Trie.