1
0
mirror of https://github.com/juanfont/headscale.git synced 2024-10-17 20:05:55 +02:00

fixed lint errors

This commit is contained in:
Mevan Samaratunga 2022-03-10 10:22:21 -05:00
parent 8b5e8b7dfc
commit af081e9fd3

7
api.go
View File

@ -600,7 +600,6 @@ func (h *Headscale) handleAuthKey(
machine.NodeKey = nodeKey
machine.AuthKeyID = uint(pak.ID)
h.RefreshMachine(machine, registerRequest.Expiry)
} else {
now := time.Now().UTC()
@ -614,7 +613,7 @@ func (h *Headscale) handleAuthKey(
LastSeen: &now,
AuthKeyID: uint(pak.ID),
}
machine, err = h.RegisterMachine(
machineToRegister,
)
@ -629,9 +628,9 @@ func (h *Headscale) handleAuthKey(
http.StatusInternalServerError,
"could not register machine",
)
return
}
}
}
h.UsePreAuthKey(pak)