This commit is contained in:
Adam Ierymenko 2019-09-25 14:16:55 -07:00
parent 9c37fc1a5f
commit 570032484f
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3
9 changed files with 93 additions and 103 deletions

View file

@ -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 {