[dconf-editor] Small change.



commit 1a9fcf96ffcabb843cadc347f15a977ff0e33a08
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Sun Dec 10 12:27:32 2017 +0100

    Small change.

 editor/dconf-editor.vala |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/editor/dconf-editor.vala b/editor/dconf-editor.vala
index f6211fd..2fefbf5 100644
--- a/editor/dconf-editor.vala
+++ b/editor/dconf-editor.vala
@@ -322,10 +322,9 @@ class ConfigurationEditor : Gtk.Application
             return Posix.EXIT_FAILURE;
         }
 
-        int ret = Posix.EXIT_SUCCESS;
-
         if (arg0.has_prefix ("/"))
         {
+            int ret = Posix.EXIT_SUCCESS;
             if (args.length == 2)
             {
                 commands.print (_("Cannot understand second argument in this context.\n"));
@@ -375,7 +374,7 @@ class ConfigurationEditor : Gtk.Application
 
         Gtk.Window window = get_new_window (test_format [0], path, key_name);
         window.present ();
-        return ret;
+        return Posix.EXIT_SUCCESS;
     }
 
     private int failure_space (ApplicationCommandLine commands)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]