Skip to content

Commit

Permalink
πŸ‘Œ simplify error condition
Browse files Browse the repository at this point in the history
  • Loading branch information
BenoitZugmeyer committed Mar 2, 2022
1 parent 8fd1ac9 commit bfbf0de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/lib/framework/httpServers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ async function instantiateServer(): Promise<http.Server> {
try {
return await instantiateServerOnPort(port)
} catch (error) {
if (error instanceof Error && (error as NodeJS.ErrnoException).code === 'EADDRINUSE') {
if ((error as NodeJS.ErrnoException).code === 'EADDRINUSE') {
continue
}
throw error
Expand Down

0 comments on commit bfbf0de

Please sign in to comment.