From ed54a30109c0ce550fcf47de010f7b0f01d094a9 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Wed, 10 Jul 2019 17:14:29 +0200 Subject: [PATCH] fix lint License: MIT Signed-off-by: Jakub Sztandera --- node/repo/fsrepo.go | 1 + node/repo/fsrepo_test.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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) } }