1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2024-10-27 20:44:10 +00:00

removed unnecessary null check

This commit is contained in:
Falk Werner 2020-06-21 21:27:53 +02:00
parent 73f15b3790
commit 2c638bb6c7

View File

@ -5,7 +5,7 @@ int wfp_impl_json_get_int(json_t const * object, char const * key, int default_v
int result = default_value;
json_t * holder = json_object_get(object, key);
if ((NULL != holder) && (json_is_integer(holder)))
if (json_is_integer(holder))
{
result = json_integer_value(holder);
}