From 4b4a5a4b93feeb7404c853ac45e97ad2a208c123 Mon Sep 17 00:00:00 2001 From: Juan Font Date: Fri, 10 Sep 2021 00:32:42 +0200 Subject: [PATCH] Update sharing.go Co-authored-by: Kristoffer Dalby --- sharing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sharing.go b/sharing.go index 98811e5..93c299c 100644 --- a/sharing.go +++ b/sharing.go @@ -20,7 +20,7 @@ func (h *Headscale) AddSharedMachineToNamespace(m *Machine, ns *Namespace) error return errorSameNamespace } - sn := SharedMachine{} + sharedMachine := SharedMachine{} if err := h.db.Where("machine_id = ? AND namespace_id", m.ID, ns.ID).First(&sharedMachine).Error; err == nil { return errorMachineAlreadyShared }