Remove assigned but unused error variables in filesystem test

This commit is contained in:
Christian Claus 2018-05-24 22:30:06 +02:00
parent 1c1fc5becc
commit ee86603f48

View file

@ -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)