diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-06-18 12:15:40 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2017-06-18 12:15:40 +0200 |
commit | abb9ec0f3efea571b7f19b7391eb7c152c899f45 (patch) | |
tree | 703bcd8caf958007e90d6694e5225084b3ddfdb5 /storage/filesystem/module.go | |
parent | bf3a92052f715c507ace0cb9f2b7fb358f623abc (diff) | |
download | go-git-abb9ec0f3efea571b7f19b7391eb7c152c899f45.tar.gz |
*: upgrade to go-billy.v3, merge
Diffstat (limited to 'storage/filesystem/module.go')
-rw-r--r-- | storage/filesystem/module.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/storage/filesystem/module.go b/storage/filesystem/module.go index 2e469d3..6f3de3f 100644 --- a/storage/filesystem/module.go +++ b/storage/filesystem/module.go @@ -10,5 +10,10 @@ type ModuleStorage struct { } func (s *ModuleStorage) Module(name string) (storage.Storer, error) { - return NewStorage(s.dir.Module(name)) + fs, err := s.dir.Module(name) + if err != nil { + return nil, err + } + + return NewStorage(fs) } |