mirror of
https://github.com/tailscale/tailscale.git
synced 2025-01-05 14:57:49 +00:00
ipn/ipnserver: staticcheck is not wrong
shamecube.gif
This commit is contained in:
parent
4aba86cc03
commit
9ff5b380cb
@ -188,7 +188,6 @@ func Run(ctx context.Context, logf logger.Logf, logid string, getEngine func() (
|
||||
continue
|
||||
}
|
||||
logf("%d: trying getEngine again...", i)
|
||||
//lint:ignore SA4006 staticcheck is wrong
|
||||
eng, err = getEngine()
|
||||
if err == nil {
|
||||
logf("%d: GetEngine worked; exiting failure loop", i)
|
||||
@ -204,7 +203,9 @@ func Run(ctx context.Context, logf logger.Logf, logid string, getEngine func() (
|
||||
s.Read(make([]byte, 1))
|
||||
}()
|
||||
}
|
||||
return ctx.Err()
|
||||
if err := ctx.Err(); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
var store ipn.StateStore
|
||||
|
Loading…
x
Reference in New Issue
Block a user