License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
Jakub Sztandera 2019-07-10 17:14:29 +02:00
parent d484e4ffb9
commit ed54a30109
2 changed files with 2 additions and 1 deletions

View File

@ -32,6 +32,7 @@ type FsRepo struct {
var _ Repo = &FsRepo{}
// NewFS creates a repo instance based on a path on file system
func NewFS(path string) (*FsRepo, error) {
return &FsRepo{
path: path,

View File

@ -15,7 +15,7 @@ func genFsRepo(t *testing.T) (*FsRepo, func()) {
t.Fatal(err)
}
return repo, func() {
os.RemoveAll(path)
_ = os.RemoveAll(path)
}
}