Skip to content

Commit

Permalink
Fix testing pathRepository for null (#1304)
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollonval authored Nov 21, 2023
1 parent f2fbb69 commit f5efbc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commandsAndMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1276,7 +1276,7 @@ export function addCommands(
),
execute: async args => {
const { files } = args as any as CommandArguments.IGitFileDiff;
if (!gitModel.pathRepository) {
if (gitModel.pathRepository === null) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ export class GitExtension implements IGitExtension {
* Note: This makes sure it always returns non null value
*/
protected get _currentMarker(): BranchMarker {
if (!this.pathRepository) {
if (this.pathRepository === null) {
return new BranchMarker(() => {});
}

Expand Down

0 comments on commit f5efbc4

Please sign in to comment.