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:
parent
726793b6fa
commit
276a0118da
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user