summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-01-04 15:17:19 +0100
committerLennart Poettering <lennart@poettering.net>2024-01-04 22:55:42 +0100
commitbd334c0ebbc71d581eafc9bcffef01821eccedb8 (patch)
treea6a9047ff3027ca76bb1d69f391856c0c6dd1465 /src
parentMerge pull request #30749 from poettering/tmpfiles-verb-fix (diff)
downloadsystemd-bd334c0ebbc71d581eafc9bcffef01821eccedb8.tar.xz
systemd-bd334c0ebbc71d581eafc9bcffef01821eccedb8.zip
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: https://github.com/systemd/systemd/pull/30578/commits/fa9a6db478e3f0f2753e4633af6d0d4881707c2b#r1441792019
Diffstat (limited to 'src')
-rw-r--r--src/shared/json.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/shared/json.c b/src/shared/json.c
index 15675a7046..19e8e0c77e 100644
--- a/src/shared/json.c
+++ b/src/shared/json.c
@@ -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))