Skip to content

Commit

Permalink
fix: conflict files pane was opened on pull error
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinzent03 committed Mar 24, 2021
1 parent 358dc6e commit 8d43e7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export default class ObsidianGit extends Plugin {
if (err) {
this.displayError(`Pull failed ${err.message}`);
const status = await this.git.status();
if (status.conflicted.length >= 0) {
if (status.conflicted.length > 0) {
this.handleConflict(status.conflicted);
}
}
Expand Down

0 comments on commit 8d43e7b

Please sign in to comment.