be pedantic
This commit is contained in:
parent
726793b6fa
commit
276a0118da
@ -10,7 +10,10 @@ func wait(ctx context.Context) bool {
|
|||||||
if ctx == nil {
|
if ctx == nil {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
wait, _ := ctx.Value("wait").(bool)
|
wait, ok := ctx.Value("wait").(bool)
|
||||||
|
if !ok {
|
||||||
|
return false
|
||||||
|
}
|
||||||
return wait
|
return wait
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user