1
0
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:
Alberto Bertogli
2016-10-13 00:32:06 +01:00
parent a5e6e197a6
commit 1d7a207e00
7 changed files with 42 additions and 40 deletions

View File

@@ -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.