Skip to content

Commit

Permalink
remove useless ok
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Okhlopkov <[email protected]>
  • Loading branch information
Pavel Okhlopkov committed Oct 21, 2024
1 parent d7b727b commit 2dfdc4b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/unilogger/context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ func SetCustomKeyContext(ctx context.Context) context.Context {
}

func GetCustomKeyContext(ctx context.Context) bool {
has, ok := ctx.Value(customKey).(bool)
if !ok {
return false
}
has := ctx.Value(customKey).(bool)

return has
}
Expand Down

0 comments on commit 2dfdc4b

Please sign in to comment.