mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-23 15:37:01 +00:00
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.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user