mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 16:37:19 +09:00
json: drop redundant check
The same check is done exactly one line later, because this is one of
the things that json_variant_is_regular() checks.
As per: fa9a6db478 (r1441792019)
This commit is contained in:
@@ -1776,9 +1776,6 @@ static bool json_variant_is_sensitive_recursive(JsonVariant *v) {
|
||||
return false;
|
||||
if (json_variant_is_sensitive(v))
|
||||
return true;
|
||||
if (v == JSON_VARIANT_MAGIC_EMPTY_ARRAY ||
|
||||
v == JSON_VARIANT_MAGIC_EMPTY_OBJECT)
|
||||
return false;
|
||||
if (!json_variant_is_regular(v))
|
||||
return false;
|
||||
if (!IN_SET(v->type, JSON_VARIANT_ARRAY, JSON_VARIANT_OBJECT))
|
||||
|
||||
Reference in New Issue
Block a user