Skip to content

Commit

Permalink
cleanup: Remove unused/unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
deining authored and albertito committed Dec 1, 2024
1 parent eb21e61 commit 227379e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 1 addition & 5 deletions internal/aliases/aliases.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,7 @@ func (v *Resolver) Exists(tr *trace.Trace, addr string) bool {

domain := envelope.DomainOf(addr)
catchAll, _ := v.lookup("*@"+domain, tr)
if len(catchAll) > 0 {
return true
}

return false
return len(catchAll) > 0
}

func (v *Resolver) lookup(addr string, tr *trace.Trace) ([]Recipient, error) {
Expand Down
2 changes: 0 additions & 2 deletions internal/dkim/canonicalize.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import (
)

var (
errNoBody = errors.New("no body found")

errUnknownCanonicalization = errors.New("unknown canonicalization")
)

Expand Down

0 comments on commit 227379e

Please sign in to comment.