-
Notifications
You must be signed in to change notification settings - Fork 56
Add Local.startSync method #128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
just make sure changes aren't affecting old workflow
lib/Local.js
Outdated
@@ -199,10 +245,10 @@ function Local(){ | |||
conf.proxyHost = this.proxyHost; | |||
conf.proxyPort = this.proxyPort; | |||
} | |||
this.binary.binaryPath(conf, callback); | |||
return callback ? this.binary.binaryPath(conf, callback) : this.binary.binaryPath(conf); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return in case of callback doesn't make sense. Keep this in if else block and return only in case of synchronous call. Same for other similar instances in PR
delete(that.binaryPath); | ||
return that.startSync(options); | ||
} else { | ||
return new LocalError(error.toString()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@07souravkunda This should throw an error instead of returning it ~
@francisf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack
No description provided.