mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 07:56:31 +01:00
refactor success_object
This commit is contained in:
parent
659871de1e
commit
354648cc07
1 changed files with 1 additions and 5 deletions
|
@ -26,11 +26,7 @@ static bool success_object(json_object *result) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!json_object_get_boolean(success)) {
|
return json_object_get_boolean(success);
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Iterate results array and return false if any of them failed
|
// Iterate results array and return false if any of them failed
|
||||||
|
|
Loading…
Reference in a new issue