mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-02 03:33:05 +00:00
Remove err check
This commit is contained in:
parent
a9d4fa89dc
commit
86ade72c19
1 changed files with 1 additions and 10 deletions
11
oidc.go
11
oidc.go
|
@ -216,16 +216,7 @@ func (h *Headscale) OIDCCallback(ctx *gin.Context) {
|
|||
}
|
||||
|
||||
// retrieve machine information if it exist
|
||||
machine, err := 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
|
||||
}
|
||||
machine, _ := h.GetMachineByMachineKey(machineKey)
|
||||
|
||||
if machine != nil {
|
||||
log.Trace().
|
||||
|
|
Loading…
Reference in a new issue