Skip to content

Commit

Permalink
in_kubernetes_events: remove unnecessary type check.
Browse files Browse the repository at this point in the history
Signed-off-by: Phillip Whelan <[email protected]>
  • Loading branch information
pwhelan authored and edsiper committed Jul 3, 2023
1 parent dcb5e0f commit bc28e78
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plugins/in_kubernetes_events/kubernetes_events.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,7 @@ static int record_get_field_uint64(msgpack_object *obj, const char *fieldname, u
}
return 0;
}

if (v->type == MSGPACK_OBJECT_POSITIVE_INTEGER ||
v->type == MSGPACK_OBJECT_NEGATIVE_INTEGER) {
if (v->type == MSGPACK_OBJECT_POSITIVE_INTEGER) {
*val = v->via.u64;
return 0;
}
Expand Down

0 comments on commit bc28e78

Please sign in to comment.