Skip to content

Commit e243ebb

Browse files
committed
use !== instead of !=
1 parent 39838f4 commit e243ebb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client/debugger/Main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ export class PythonDebugger extends DebugSession {
370370
protected convertDebuggerPathToClient(remotePath: string): string {
371371
if (this.attachArgs && this.attachArgs.localRoot && this.attachArgs.remoteRoot) {
372372
let path2 = path.win32;
373-
if (this.attachArgs.remoteRoot.indexOf('/') != -1) {
373+
if (this.attachArgs.remoteRoot.indexOf('/') !== -1) {
374374
path2 = path.posix;
375375
}
376376
let pathRelativeToSourceRoot = path2.relative(this.attachArgs.remoteRoot, remotePath);
@@ -388,7 +388,7 @@ export class PythonDebugger extends DebugSession {
388388
const pathRelativeToClientRoot = path.relative(this.attachArgs.localRoot, clientPath);
389389
// resolve from the remote source root
390390
let path2 = path.win32;
391-
if (this.attachArgs.remoteRoot.indexOf('/') != -1) {
391+
if (this.attachArgs.remoteRoot.indexOf('/') !== -1) {
392392
path2 = path.posix;
393393
}
394394
return path2.resolve(this.attachArgs.remoteRoot, pathRelativeToClientRoot);

0 commit comments

Comments
 (0)