diff --git a/node/repo/fsrepo.go b/node/repo/fsrepo.go index 0e4ad472c..1d3f313ee 100644 --- a/node/repo/fsrepo.go +++ b/node/repo/fsrepo.go @@ -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, diff --git a/node/repo/fsrepo_test.go b/node/repo/fsrepo_test.go index 0275debdd..4cda09f4e 100644 --- a/node/repo/fsrepo_test.go +++ b/node/repo/fsrepo_test.go @@ -15,7 +15,7 @@ func genFsRepo(t *testing.T) (*FsRepo, func()) { t.Fatal(err) } return repo, func() { - os.RemoveAll(path) + _ = os.RemoveAll(path) } }