Skip to content

Commit 4af0f3d

Browse files
committed
lint
1 parent 4035fec commit 4af0f3d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/util.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ export const AuthorityPrefix = "coder-vscode"
1616
// `ms-vscode-remote.remote-ssh`: `-> socksPort <port> ->`
1717
// `codeium.windsurf-remote-openssh`: `=> <port>(socks) =>`
1818
// Windows `ms-vscode-remote.remote-ssh`: `between local port <port>`
19-
export const RemoteSSHLogPortRegex = /(?:-> socksPort (\d+) ->|=> (\d+)\(socks\) =>|between local port (\d+))/;
20-
19+
export const RemoteSSHLogPortRegex = /(?:-> socksPort (\d+) ->|=> (\d+)\(socks\) =>|between local port (\d+))/
2120

2221
/**
2322
* Given the contents of a Remote - SSH log file, find a port number used by the
@@ -33,12 +32,12 @@ export async function findPort(text: string): Promise<number | null> {
3332
if (matches.length < 2) {
3433
return null
3534
}
36-
const portStr = matches[1] || matches[2] || matches[3];
35+
const portStr = matches[1] || matches[2] || matches[3]
3736
if (!portStr) {
3837
return null
3938
}
4039

41-
return Number.parseInt(portStr);
40+
return Number.parseInt(portStr)
4241
}
4342

4443
/**

0 commit comments

Comments
 (0)