mirror of
https://github.com/danbulant/bpm
synced 2026-05-27 05:41:59 +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://")){
|
} else if(path.startsWith("https://")){
|
||||||
var handler = https;
|
var handler = https;
|
||||||
} else {
|
} else {
|
||||||
rej(Error("Unsupported protocol"));
|
return rej(Error("Unsupported protocol"));
|
||||||
}
|
}
|
||||||
|
|
||||||
handler.get(path, options, (resp) => {
|
handler.get(path, options, (resp) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue