Remove err check

This commit is contained in:
Kristoffer Dalby 2022-03-01 18:51:56 +00:00
parent a9d4fa89dc
commit 86ade72c19

11
oidc.go
View file

@ -216,16 +216,7 @@ func (h *Headscale) OIDCCallback(ctx *gin.Context) {
} }
// retrieve machine information if it exist // retrieve machine information if it exist
machine, err := h.GetMachineByMachineKey(machineKey) machine, _ := h.GetMachineByMachineKey(machineKey)
if err != nil {
log.Error().Msg("machine key not found in database")
ctx.String(
http.StatusInternalServerError,
"could not get machine info from database",
)
return
}
if machine != nil { if machine != nil {
log.Trace(). log.Trace().