diff --git a/builder/dockerfile/utils_test.go b/builder/dockerfile/utils_test.go index 38f93dab22..74d642be97 100644 --- a/builder/dockerfile/utils_test.go +++ b/builder/dockerfile/utils_test.go @@ -17,7 +17,6 @@ func createTestTempDir(t *testing.T, dir, prefix string) (string, func()) { return path, func() { err = os.RemoveAll(path) - if err != nil { t.Fatalf("Error when removing directory %s: %s", path, err) } diff --git a/builder/remotecontext/tarsum_test.go b/builder/remotecontext/tarsum_test.go index 2d6541c99b..49cbe72b21 100644 --- a/builder/remotecontext/tarsum_test.go +++ b/builder/remotecontext/tarsum_test.go @@ -33,7 +33,6 @@ func TestCloseRootDirectory(t *testing.T) { src := makeTestArchiveContext(t, contextDir) err = src.Close() - if err != nil { t.Fatalf("Error while executing Close: %s", err) } diff --git a/builder/remotecontext/utils_test.go b/builder/remotecontext/utils_test.go index e604e272ae..ec6c4859cf 100644 --- a/builder/remotecontext/utils_test.go +++ b/builder/remotecontext/utils_test.go @@ -17,7 +17,6 @@ func createTestTempDir(t *testing.T, dir, prefix string) (string, func()) { return path, func() { err = os.RemoveAll(path) - if err != nil { t.Fatalf("Error when removing directory %s: %s", path, err) }