]> err.no Git - systemd/commitdiff
logind: fix indentation
authorLennart Poettering <lennart@poettering.net>
Fri, 1 Jun 2012 13:57:21 +0000 (15:57 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 1 Jun 2012 13:58:21 +0000 (15:58 +0200)
src/login/logind-dbus.c

index f4b232b9ae2134cbb40346eddf5476614311e909..17bd5e5c3cde493462fe236f1537495a2b6ba68d 100644 (file)
@@ -1088,11 +1088,11 @@ static int bus_manager_can_shutdown_or_sleep(
 
                 if (r > 0)
                         result = "yes";
-                        else if (challenge)
-                                result = "challenge";
-                        else
-                                result = "no";
-                }
+                else if (challenge)
+                        result = "challenge";
+                else
+                        result = "no";
+        }
 
         if (blocked) {
                 r = verify_polkit(connection, message, action_ignore_inhibit, false, &challenge, error);