File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 11import { lookup } from "dns"
22import ipRangeCheck from "ip-range-check"
3- import { ssh } from "node-forge"
43import * as os from "os"
54import url from "url"
65import { promisify } from "util"
@@ -31,9 +30,9 @@ export function parseRemoteAuthority(authority: string): AuthorityParts | null {
3130 const authorityParts = authority . split ( "@" )
3231 let containerNameHex = undefined
3332 let sshAuthority
34- if ( authorityParts . length == 1 ) {
33+ if ( authorityParts . length === 1 ) {
3534 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+" ) ) {
3736 sshAuthority = authorityParts [ 1 ]
3837 containerNameHex = authorityParts [ 0 ] . split ( "+" ) [ 1 ]
3938 } else {
You can’t perform that action at this time.
0 commit comments