Skip to content
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

Check port availability before login #126

Merged
merged 1 commit into from
May 20, 2022
Merged

Check port availability before login #126

merged 1 commit into from
May 20, 2022

Conversation

2can
Copy link
Member

@2can 2can commented May 20, 2022

No description provided.

@zaiste zaiste added this to the 1.2.0 milestone May 20, 2022
export const portIsAvailable = async (
port: number
): Promise<boolean> => {
const detectedPort = await detectPort(port).catch((err: Error) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

@2can you don't have to re-throw, detectPort will throw it up the chain

@zaiste zaiste merged commit 345cd01 into main May 20, 2022
@zaiste zaiste deleted the detect-port branch May 20, 2022 14:12
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.

None yet

2 participants