mirror of https://github.com/spf13/afero.git
Add missing error check in RegexpFs Open
This commit is contained in:
parent
a2fefa4cb9
commit
70f98daaf3
|
@ -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