From b9fee36f6ed98b95b432cdf68581e63ba1a0cb9a Mon Sep 17 00:00:00 2001 From: Adrien Raffin-Caboisse Date: Thu, 21 Apr 2022 23:56:58 +0200 Subject: [PATCH] fix: linting --- acls.go | 1 + machine.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/acls.go b/acls.go index 2fa2e4f..2636836 100644 --- a/acls.go +++ b/acls.go @@ -267,6 +267,7 @@ func expandAlias( alias, ) } + return ips, nil } else { return ips, err diff --git a/machine.go b/machine.go index 44264e9..9fc06a4 100644 --- a/machine.go +++ b/machine.go @@ -361,7 +361,7 @@ func (h *Headscale) UpdateMachine(machine *Machine) error { } // UpdateDBMachine takes a Machine struct pointer (typically already loaded from database -// search for the same machine in the database and update the latter +// search for the same machine in the database and update the latter. func (h *Headscale) UpdateDBMachine(machine Machine) error { destMachine := Machine{} if result := h.db.Where("id = ?", machine.ID).Find(&destMachine); result.Error != nil {