mirror of
https://github.com/danbulant/bpm
synced 2026-05-19 04:08:47 +00:00
Stop execution of function after rejection
This commit is contained in:
parent
674fb26a3b
commit
bf6ec88807
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ module.exports = (path, options = { method: "GET" }) => {
|
|||
} else if(path.startsWith("https://")){
|
||||
var handler = https;
|
||||
} else {
|
||||
rej(Error("Unsupported protocol"));
|
||||
return rej(Error("Unsupported protocol"));
|
||||
}
|
||||
|
||||
handler.get(path, options, (resp) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue