be pedantic

This commit is contained in:
Asim Aslam 2017-05-31 19:33:11 +01:00
parent 726793b6fa
commit 276a0118da

View File

@ -10,7 +10,10 @@ func wait(ctx context.Context) bool {
if ctx == nil {
return false
}
wait, _ := ctx.Value("wait").(bool)
wait, ok := ctx.Value("wait").(bool)
if !ok {
return false
}
return wait
}