Skip to content

Commit 864e621

Browse files
WVerlaekona-agent
andcommitted
go fmt
Co-authored-by: Ona <[email protected]>
1 parent e26c752 commit 864e621

File tree

8 files changed

+1
-15
lines changed

8 files changed

+1
-15
lines changed

cmd/build.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ import (
2323
"go.opentelemetry.io/otel/attribute"
2424
)
2525

26-
27-
2826
// buildCmd represents the build command
2927
var buildCmd = &cobra.Command{
3028
Use: "build [targetPackage]",

pkg/leeway/cache/remote/s3_download_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ func (m *mockS3Storage) UploadObject(ctx context.Context, key string, src string
7777
return nil
7878
}
7979

80-
81-
8280
func TestS3CacheDownload(t *testing.T) {
8381
tmpDir := t.TempDir()
8482

pkg/leeway/cache/remote/s3_performance_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,6 @@ func (m *realisticMockS3Storage) UploadObject(ctx context.Context, key string, s
115115
return nil
116116
}
117117

118-
119-
120118
// realisticMockVerifier implements realistic SLSA verification performance
121119
type realisticMockVerifier struct{}
122120

pkg/leeway/cache/remote/s3_provenance_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,5 +360,3 @@ func (m *mockS3StorageForProvenance) UploadObject(ctx context.Context, key strin
360360
m.objects[key] = data
361361
return nil
362362
}
363-
364-

pkg/leeway/cache/remote/s3_resilience_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,6 @@ func (m *mockS3WithFailures) UploadObject(ctx context.Context, key string, src s
153153
return nil
154154
}
155155

156-
157-
158156
// Mock package for testing
159157
type mockPackageResilience struct {
160158
version string

pkg/leeway/cache/remote/s3_slsa_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ func (m *mockS3StorageWithSLSA) getCallLog() []string {
7171
return result
7272
}
7373

74-
75-
7674
type mockNotFoundError struct {
7775
key string
7876
}

pkg/leeway/cache/remote/s3_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ func (m *mockS3Client) UploadPart(ctx context.Context, params *s3.UploadPartInpu
6565
return &s3.UploadPartOutput{}, nil
6666
}
6767

68-
69-
7068
func TestS3Cache_ExistingPackages(t *testing.T) {
7169
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
7270
defer cancel()

pkg/leeway/reporter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ type OTelReporter struct {
731731
rootSpan trace.Span
732732
packageCtxs map[string]context.Context
733733
packageSpans map[string]trace.Span
734-
phaseSpans map[string]trace.Span // key: "packageName:phaseName"
734+
phaseSpans map[string]trace.Span // key: "packageName:phaseName"
735735
phaseCtxs map[string]context.Context // key: "packageName:phaseName"
736736
mu sync.RWMutex
737737
}

0 commit comments

Comments
 (0)