mirror of
https://blitiri.com.ar/repos/chasquid
synced 2026-01-08 17:51:57 +00:00
Minor style and simplification cleanups
This patch does various minor style and simplification cleanups, fixing things detected by tools such as go vet, gofmt -s, and golint. There are no functional changes, this change is purely cosmetic, but will enable us to run those tools more regularly now that their output is clean.
This commit is contained in:
@@ -25,7 +25,7 @@ var (
|
||||
)
|
||||
|
||||
var (
|
||||
timeoutError = fmt.Errorf("Operation timed out")
|
||||
errTimeout = fmt.Errorf("Operation timed out")
|
||||
)
|
||||
|
||||
// Procmail delivers local mail via procmail.
|
||||
@@ -79,7 +79,7 @@ func (p *Procmail) Deliver(from string, to string, data []byte) error {
|
||||
timedOut := !timer.Stop()
|
||||
|
||||
if timedOut {
|
||||
return tr.Error(timeoutError)
|
||||
return tr.Error(errTimeout)
|
||||
}
|
||||
if err != nil {
|
||||
return tr.Errorf("Procmail failed: %v - %q", err, output.String())
|
||||
|
||||
Reference in New Issue
Block a user