fix linting issues in preauthkey tags

This commit is contained in:
Benjamin George Roberts 2022-09-07 22:12:29 +10:00
parent 470c49394c
commit 8a8ec7476d
6 changed files with 19 additions and 19 deletions

View file

@ -343,7 +343,6 @@ func (h *Headscale) handleAuthKeyCommon(
machine.NodeKey = nodeKey
machine.AuthKeyID = uint(pak.ID)
err := h.RefreshMachine(machine, registerRequest.Expiry)
if err != nil {
log.Error().
Caller().
@ -372,7 +371,6 @@ func (h *Headscale) handleAuthKeyCommon(
return
}
} else {
now := time.Now().UTC()