Skip to content

Commit

Permalink
Fix logic. Param check wasn't accurate prior
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcgill-nz committed Jul 1, 2022
1 parent 5c456ef commit cbe3ec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async function requestJenkinsJob(jobName, params, headers) {
clearTimeout(timer);
reject();
}
resolve(!!(body.search("ParametersDefinitionProperty")));
resolve(body.search("ParametersDefinitionProperty") >= 0);
})
);
const req = {
Expand Down

0 comments on commit cbe3ec5

Please sign in to comment.