swaymsg: fix misplaced return value

This commit is contained in:
Jason Nader 2021-10-18 18:45:40 +09:00
parent e9de6b2b08
commit 7a16028abe
No known key found for this signature in database
GPG key ID: EE220FCAA09AF23D

View file

@ -528,8 +528,8 @@ int main(int argc, char **argv) {
if (!quiet) {
sway_log(SWAY_ERROR, "failed to parse payload as json: %s",
json_tokener_error_desc(err));
ret = 1;
}
ret = 1;
break;
} else if (quiet) {
json_object_put(obj);