diff options
author | Armin Preiml <apreiml@strohwolke.at> | 2018-06-30 10:38:16 +0200 |
---|---|---|
committer | Armin Preiml <apreiml@strohwolke.at> | 2018-06-30 10:38:16 +0200 |
commit | 354648cc073a4cb0c35862e68175b918c31c3104 (patch) | |
tree | 692807aa458a8102b3ae238f6f33758721867dc7 | |
parent | 659871de1eacc7d6ad1a153cae160c818ef1739a (diff) |
refactor success_object
-rw-r--r-- | swaymsg/main.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/swaymsg/main.c b/swaymsg/main.c index 39882293..4283bf00 100644 --- a/swaymsg/main.c +++ b/swaymsg/main.c @@ -26,11 +26,7 @@ static bool success_object(json_object *result) { return false; } - if (!json_object_get_boolean(success)) { - return false; - } - - return true; + return json_object_get_boolean(success); } // Iterate results array and return false if any of them failed |