ignore err where it was intended

This commit is contained in:
Denis Bilenko 2024-12-09 14:11:49 +01:00
parent 3af2a09c1b
commit 8e77be3a9e
1 changed files with 2 additions and 6 deletions

View File

@ -155,12 +155,8 @@ func globalGitConfig() (*config, error) {
// > are missing or unreadable they will be ignored.
//
// We therefore ignore the error return value for the calls below.
if err := config.loadFile(vfs.MustNew(xdgConfigHome), "git/config"); err != nil {
return nil, err
}
if err := config.loadFile(vfs.MustNew(config.home), ".gitconfig"); err != nil {
return nil, err
}
_ = config.loadFile(vfs.MustNew(xdgConfigHome), "git/config")
_ = config.loadFile(vfs.MustNew(config.home), ".gitconfig")
return config, nil
}