From ee86603f48f1dcdef66b17d579f769d2f50e21b0 Mon Sep 17 00:00:00 2001 From: Christian Claus Date: Thu, 24 May 2018 22:30:06 +0200 Subject: [PATCH] Remove assigned but unused error variables in filesystem test --- app/fs_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/fs_test.go b/app/fs_test.go index 5ef1ef6..48e03cc 100644 --- a/app/fs_test.go +++ b/app/fs_test.go @@ -244,7 +244,7 @@ func TestDirOpenFile(t *testing.T) { t.Errorf("Dir.OpenFile() error = %v", err) } - gotFileInfo, err := got.Stat() + gotFileInfo, _ := got.Stat() if !reflect.DeepEqual(gotFileInfo, wantFileInfo) { t.Errorf("Dir.OpenFile() = %v, want %v", gotFileInfo, wantFileInfo) @@ -452,7 +452,7 @@ func TestDirStat(t *testing.T) { return } - want, err := os.Stat(filepath.Join(tmpDir, tt.name)) + want, _ := os.Stat(filepath.Join(tmpDir, tt.name)) if !reflect.DeepEqual(got, want) { t.Errorf("Dir.Stat() = %v, want %v", got, want)