.
This commit is contained in:
parent
9c37fc1a5f
commit
570032484f
9 changed files with 93 additions and 103 deletions
|
@ -108,7 +108,7 @@ func (lc *LocalConfig) Read(p string, saveDefaultsIfNotExist bool) error {
|
|||
|
||||
data, err := ioutil.ReadFile(p)
|
||||
if err != nil {
|
||||
if err != os.ErrNotExist {
|
||||
if !os.IsNotExist(err) {
|
||||
return err
|
||||
}
|
||||
if saveDefaultsIfNotExist {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue