Skip to content

Commit

Permalink
use !== instead of !=
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne committed Sep 12, 2016
1 parent 39838f4 commit e243ebb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/debugger/Main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ export class PythonDebugger extends DebugSession {
protected convertDebuggerPathToClient(remotePath: string): string {
if (this.attachArgs && this.attachArgs.localRoot && this.attachArgs.remoteRoot) {
let path2 = path.win32;
if (this.attachArgs.remoteRoot.indexOf('/') != -1) {
if (this.attachArgs.remoteRoot.indexOf('/') !== -1) {
path2 = path.posix;
}
let pathRelativeToSourceRoot = path2.relative(this.attachArgs.remoteRoot, remotePath);
Expand All @@ -388,7 +388,7 @@ export class PythonDebugger extends DebugSession {
const pathRelativeToClientRoot = path.relative(this.attachArgs.localRoot, clientPath);
// resolve from the remote source root
let path2 = path.win32;
if (this.attachArgs.remoteRoot.indexOf('/') != -1) {
if (this.attachArgs.remoteRoot.indexOf('/') !== -1) {
path2 = path.posix;
}
return path2.resolve(this.attachArgs.remoteRoot, pathRelativeToClientRoot);
Expand Down

0 comments on commit e243ebb

Please sign in to comment.