git » spf » commit b45726f

Minor code aesthetic improvements, based on vet+fmt+lint

author Alberto Bertogli
2016-10-12 23:32:06 UTC
committer Alberto Bertogli
2016-10-21 21:13:39 UTC
parent 9a9651cbf765cde8d399276b68ffc2503f9c3c38

Minor code aesthetic improvements, based on vet+fmt+lint

This patch is the result of running go vet, go fmt -s and the linter,
and fixing some of the things they noted/suggested.

There shouldn't be any significant logic changes, it's mostly
readability improvements.

spf.go +3 -3

diff --git a/spf.go b/spf.go
index 7e158c9..fbc28d6 100644
--- a/spf.go
+++ b/spf.go
@@ -30,9 +30,9 @@ import (
 
 // Functions that we can override for testing purposes.
 var (
-	lookupTXT func(domain string) (txts []string, err error) = net.LookupTXT
-	lookupMX  func(domain string) (mxs []*net.MX, err error) = net.LookupMX
-	lookupIP  func(host string) (ips []net.IP, err error)    = net.LookupIP
+	lookupTXT = net.LookupTXT
+	lookupMX  = net.LookupMX
+	lookupIP  = net.LookupIP
 )
 
 // Results and Errors. Note the values have meaning, we use them in headers.