Skip to content

Commit f5a04b0

Browse files
committed
gofumpt -w .
Signed-off-by: David Gageot <david.gageot@docker.com>
1 parent a61b232 commit f5a04b0

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

internal/telemetry/telemetry_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ func TestCommandTracking(t *testing.T) {
203203
time.Sleep(10 * time.Millisecond)
204204
return nil
205205
})
206-
207206
if err != nil {
208207
t.Fatalf("Command execution failed: %v", err)
209208
}
@@ -662,7 +661,6 @@ func TestTrackServerStart(t *testing.T) {
662661
time.Sleep(10 * time.Millisecond)
663662
return nil
664663
})
665-
666664
if err != nil {
667665
t.Fatalf("Server execution failed: %v", err)
668666
}

pkg/session/environment_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func TestGetEnvironmentInfo(t *testing.T) {
2020
name: "with git repo",
2121
setupFunc: func() string {
2222
tmpDir := t.TempDir()
23-
require.NoError(t, os.Mkdir(filepath.Join(tmpDir, ".git"), 0755))
23+
require.NoError(t, os.Mkdir(filepath.Join(tmpDir, ".git"), 0o755))
2424
return tmpDir
2525
},
2626
expectGit: true,
@@ -80,15 +80,15 @@ func TestIsGitRepo(t *testing.T) {
8080
name: "git folder",
8181
setupFunc: func() string {
8282
tmpDir := t.TempDir()
83-
require.NoError(t, os.Mkdir(filepath.Join(tmpDir, ".git"), 0755))
83+
require.NoError(t, os.Mkdir(filepath.Join(tmpDir, ".git"), 0o755))
8484
return tmpDir
8585
},
8686
},
8787
{
8888
name: "git file",
8989
setupFunc: func() string {
9090
tmpDir := t.TempDir()
91-
require.NoError(t, os.WriteFile(filepath.Join(tmpDir, ".git"), []byte("gitdir: /some/other/path"), 0644))
91+
require.NoError(t, os.WriteFile(filepath.Join(tmpDir, ".git"), []byte("gitdir: /some/other/path"), 0o644))
9292
return tmpDir
9393
},
9494
},

0 commit comments

Comments
 (0)