fix: socketio spawn error (#19070)

* fix: socketio spawn error

Restarting supervisorctl fails when attempting to spawn the instance due to syntax.

* refactor: accurate expansion of optional chaining

Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
This commit is contained in:
Matthew Enderle 2022-11-30 23:11:42 -06:00 committed by GitHub
parent ef5c618954
commit 3885833764
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -303,7 +303,7 @@ function can_subscribe_list(args) {
} }
return false; return false;
} else if (res.status == 200) { } else if (res.status == 200) {
args?.callback(err, res); args.callback && args.callback(err, res);
return true; return true;
} }
log("ERROR (can_subscribe_list): ", err, res); log("ERROR (can_subscribe_list): ", err, res);