Start work on making gocritic pass

This commit is contained in:
Kristoffer Dalby committed 2021-11-14 18:44:37 +01:00
1 parent ba084b9987
commit 53ed749f45
6 files changed
+27 -19

No files matched your search

+1 -1
View File
@@ -56,7 +56,7 @@ func (h *Hosts) UnmarshalJSON(data []byte) error {
}
for k, v := range hs {
if !strings.Contains(v, "/") {
v = v + "/32"
v += "/32"
}
prefix, err := netaddr.ParseIPPrefix(v)
if err != nil {