mirror of https://github.com/databricks/cli.git
ignore err where it was intended
This commit is contained in:
parent
3af2a09c1b
commit
8e77be3a9e
|
@ -155,12 +155,8 @@ func globalGitConfig() (*config, error) {
|
||||||
// > are missing or unreadable they will be ignored.
|
// > are missing or unreadable they will be ignored.
|
||||||
//
|
//
|
||||||
// We therefore ignore the error return value for the calls below.
|
// We therefore ignore the error return value for the calls below.
|
||||||
if err := config.loadFile(vfs.MustNew(xdgConfigHome), "git/config"); err != nil {
|
_ = config.loadFile(vfs.MustNew(xdgConfigHome), "git/config")
|
||||||
return nil, err
|
_ = config.loadFile(vfs.MustNew(config.home), ".gitconfig")
|
||||||
}
|
|
||||||
if err := config.loadFile(vfs.MustNew(config.home), ".gitconfig"); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return config, nil
|
return config, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue