Skip to content

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

Merged
merged 8 commits into from
May 4, 2022

Conversation

07souravkunda
Copy link
Collaborator

No description provided.

Copy link

@nagpalkaran95 nagpalkaran95 left a 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);
Copy link
Collaborator

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

@francisf francisf merged commit 8db8bdb into browserstack:master May 4, 2022
delete(that.binaryPath);
return that.startSync(options);
} else {
return new LocalError(error.toString());
Copy link
Contributor

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants