File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { lookup } from "dns"
2
2
import ipRangeCheck from "ip-range-check"
3
- import { ssh } from "node-forge"
4
3
import * as os from "os"
5
4
import url from "url"
6
5
import { promisify } from "util"
@@ -31,9 +30,9 @@ export function parseRemoteAuthority(authority: string): AuthorityParts | null {
31
30
const authorityParts = authority . split ( "@" )
32
31
let containerNameHex = undefined
33
32
let sshAuthority
34
- if ( authorityParts . length == 1 ) {
33
+ if ( authorityParts . length === 1 ) {
35
34
sshAuthority = authorityParts [ 0 ]
36
- } else if ( authorityParts . length == 2 && authorityParts [ 0 ] . includes ( "attached-container+" ) ) {
35
+ } else if ( authorityParts . length === 2 && authorityParts [ 0 ] . includes ( "attached-container+" ) ) {
37
36
sshAuthority = authorityParts [ 1 ]
38
37
containerNameHex = authorityParts [ 0 ] . split ( "+" ) [ 1 ]
39
38
} else {
You can’t perform that action at this time.
0 commit comments