Skip to content

Commit

Permalink
fix bad === check in history
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero authored and sandy081 committed Oct 16, 2017
1 parent 6127f33 commit 23a386a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vs/workbench/services/history/browser/history.ts
Original file line number Diff line number Diff line change
Expand Up @@ -680,9 +680,9 @@ export class HistoryService extends BaseHistoryService implements IHistoryServic
}

if (arg2 instanceof EditorInput) {
const resource = toResource(arg2);
const inputResource = toResource(arg2);

return resource && this.fileService.canHandleResource(resource) && resource.toString() === resource.toString();
return inputResource && this.fileService.canHandleResource(inputResource) && inputResource.toString() === resource.toString();
}

const resourceInput = arg2 as IResourceInput;
Expand Down

0 comments on commit 23a386a

Please sign in to comment.