Skip to content

Commit

Permalink
clarify file error (#296)
Browse files Browse the repository at this point in the history
Co-authored-by: tandi_wang <twang@yuansuan.com>
  • Loading branch information
Top-Gwen and tandi_wang committed Dec 12, 2023
1 parent 7d8c6c0 commit b006126
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,10 @@ func loadMergeFiles(dirPath string) error {
mergeDirPath := mergeDirPath(dirPath)
if _, err := os.Stat(mergeDirPath); err != nil {
// does not exist, just return.
return nil
if os.IsNotExist(err) {
return nil
}
return err
}

// remove the merge directory at last
Expand Down

0 comments on commit b006126

Please sign in to comment.