From 069e27c1804a076402545e83977af5aa89cc69b7 Mon Sep 17 00:00:00 2001 From: Cory Snider Date: Wed, 4 Sep 2024 16:16:31 -0400 Subject: [PATCH] linting: format the codebase with gofumpt ...to appease the linter. Signed-off-by: Cory Snider --- cli/command/image/build/context_test.go | 1 - cli/command/plugin/create.go | 1 - 2 files changed, 2 deletions(-) diff --git a/cli/command/image/build/context_test.go b/cli/command/image/build/context_test.go index 15686e0be4..16c2f82f5e 100644 --- a/cli/command/image/build/context_test.go +++ b/cli/command/image/build/context_test.go @@ -126,7 +126,6 @@ func TestGetContextFromReaderString(t *testing.T) { tarReader := tar.NewReader(tarArchive) _, err = tarReader.Next() - if err != nil { t.Fatalf("Error when reading tar archive: %s", err) } diff --git a/cli/command/plugin/create.go b/cli/command/plugin/create.go index bab0778cd3..437c4736c2 100644 --- a/cli/command/plugin/create.go +++ b/cli/command/plugin/create.go @@ -114,7 +114,6 @@ func runCreate(dockerCli command.Cli, options pluginCreateOptions) error { createCtx, err = archive.TarWithOptions(absContextDir, &archive.TarOptions{ Compression: compression, }) - if err != nil { return err }