Skip to content

Commit 8d43e7b

Browse files
committed
fix: conflict files pane was opened on pull error
1 parent 358dc6e commit 8d43e7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ export default class ObsidianGit extends Plugin {
284284
if (err) {
285285
this.displayError(`Pull failed ${err.message}`);
286286
const status = await this.git.status();
287-
if (status.conflicted.length >= 0) {
287+
if (status.conflicted.length > 0) {
288288
this.handleConflict(status.conflicted);
289289
}
290290
}

0 commit comments

Comments
 (0)