Skip to content

Commit bc28e78

Browse files
pwhelanedsiper
authored andcommitted
in_kubernetes_events: remove unnecessary type check.
Signed-off-by: Phillip Whelan <phil@calyptia.com>
1 parent dcb5e0f commit bc28e78

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

plugins/in_kubernetes_events/kubernetes_events.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,7 @@ static int record_get_field_uint64(msgpack_object *obj, const char *fieldname, u
260260
}
261261
return 0;
262262
}
263-
264-
if (v->type == MSGPACK_OBJECT_POSITIVE_INTEGER ||
265-
v->type == MSGPACK_OBJECT_NEGATIVE_INTEGER) {
263+
if (v->type == MSGPACK_OBJECT_POSITIVE_INTEGER) {
266264
*val = v->via.u64;
267265
return 0;
268266
}

0 commit comments

Comments
 (0)