1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-11-24 08:02:32 +02:00

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
}