Skip to content

Commit

Permalink
💄 format file
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Nov 30, 2020
1 parent 858817e commit 8c2a384
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/vs/workbench/common/editor/diffEditorInput.ts
Expand Up @@ -47,8 +47,7 @@ export class DiffEditorInput extends SideBySideEditorInput {
// relative path in case both sides have different parents and we
// compare file resources.
const fileResources = this.asFileResources();
if (fileResources && dirname(fileResources.original).path !== dirname(fileResources.modified).path
) {
if (fileResources && dirname(fileResources.original).path !== dirname(fileResources.modified).path) {
return `${this.labelService.getUriLabel(fileResources.original, { relative: true })}${this.labelService.getUriLabel(fileResources.modified, { relative: true })}`;
}

Expand All @@ -64,8 +63,7 @@ export class DiffEditorInput extends SideBySideEditorInput {
// Pass the description of the modified side in case both original
// and modified input have the same parent and we compare file resources.
const fileResources = this.asFileResources();
if (fileResources && dirname(fileResources.original).path === dirname(fileResources.modified).path
) {
if (fileResources && dirname(fileResources.original).path === dirname(fileResources.modified).path) {
return this.modifiedInput.getDescription(verbosity);
}
}
Expand Down

0 comments on commit 8c2a384

Please sign in to comment.