Start work on making gocritic pass

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

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)