Skip to content

Commit

Permalink
Null Coalesce the request method.
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Beattie <mike@ethernal.org>
  • Loading branch information
mjbnz committed Mar 28, 2022
1 parent 47199c4 commit e581a99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ function APIRequest(jsonObj) {
if (settings.advanced_settings) {
if (do_status_poll) url = settings.poll_status_url;
if (settings.request_parameters) {
body = settings.request_body;
method = do_status_poll ? settings.poll_status_method : settings.request_method;
body = settings.request_body;
method = (do_status_poll ? settings.poll_status_method : settings.request_method) ?? method;
}
}

Expand Down

0 comments on commit e581a99

Please sign in to comment.