Merge pull request #242 from robinbraemer/patch-1

Add missing error check in RegexpFs Open
This commit is contained in:
Michail Kargakis 2020-04-21 15:58:42 +02:00 committed by GitHub
commit c17d293300
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -126,6 +126,9 @@ func (r *RegexpFs) Open(name string) (File, error) {
}
}
f, err := r.source.Open(name)
if err != nil {
return nil, err
}
return &RegexpFile{f: f, re: r.re}, nil
}