chiark / gitweb /
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 f4b232b..17bd5e5 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);