mirror of
https://github.com/systemd/systemd.git
synced 2026-07-24 08:20:59 +00:00
bus-polkit: drop unnecessary else
This commit is contained in:
@@ -126,7 +126,7 @@ int bus_test_polkit(
|
||||
r = sd_bus_query_sender_privilege(call, capability);
|
||||
if (r < 0)
|
||||
return r;
|
||||
else if (r > 0)
|
||||
if (r > 0)
|
||||
return 1;
|
||||
|
||||
#if ENABLE_POLKIT
|
||||
@@ -349,7 +349,7 @@ int bus_verify_polkit_async(
|
||||
r = sd_bus_query_sender_privilege(call, capability);
|
||||
if (r < 0)
|
||||
return r;
|
||||
else if (r > 0)
|
||||
if (r > 0)
|
||||
return 1;
|
||||
|
||||
#if ENABLE_POLKIT
|
||||
|
||||
Reference in New Issue
Block a user