fix lint
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
parent
d484e4ffb9
commit
ed54a30109
@ -32,6 +32,7 @@ type FsRepo struct {
|
|||||||
|
|
||||||
var _ Repo = &FsRepo{}
|
var _ Repo = &FsRepo{}
|
||||||
|
|
||||||
|
// NewFS creates a repo instance based on a path on file system
|
||||||
func NewFS(path string) (*FsRepo, error) {
|
func NewFS(path string) (*FsRepo, error) {
|
||||||
return &FsRepo{
|
return &FsRepo{
|
||||||
path: path,
|
path: path,
|
||||||
|
@ -15,7 +15,7 @@ func genFsRepo(t *testing.T) (*FsRepo, func()) {
|
|||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
return repo, func() {
|
return repo, func() {
|
||||||
os.RemoveAll(path)
|
_ = os.RemoveAll(path)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user