mirror of https://github.com/spf13/afero.git
Merge pull request #242 from robinbraemer/patch-1
Add missing error check in RegexpFs Open
This commit is contained in:
commit
c17d293300
|
@ -126,6 +126,9 @@ func (r *RegexpFs) Open(name string) (File, error) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
f, err := r.source.Open(name)
|
f, err := r.source.Open(name)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
return &RegexpFile{f: f, re: r.re}, nil
|
return &RegexpFile{f: f, re: r.re}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue