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

+2 -2
View File
@@ -6,7 +6,7 @@ import (
func CreateNodeNamespace(
c *check.C,
namespace, node, key, IP string,
namespace, node, key, ip string,
) (*Namespace, *Machine) {
n1, err := h.CreateNamespace(namespace)
c.Assert(err, check.IsNil)
@@ -26,7 +26,7 @@ func CreateNodeNamespace(
NamespaceID: n1.ID,
Registered: true,
RegisterMethod: "authKey",
IPAddress: IP,
IPAddress: ip,
AuthKeyID: uint(pak1.ID),
}
h.db.Save(m1)