Skip to content

Commit d32e178

Browse files
committed
Fix lint
Signed-off-by: Tingmao Wang <[email protected]>
1 parent a14df8c commit d32e178

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pkg/securitypolicy/securitypolicyenforcer.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ func CreateSecurityPolicyEnforcer(
191191
}
192192

193193
type nopRevertableSectionHandle struct{}
194-
func (nopRevertableSectionHandle) Commit() {}
194+
195+
func (nopRevertableSectionHandle) Commit() {}
195196
func (nopRevertableSectionHandle) Rollback() {}
196197

197198
type OpenDoorSecurityPolicyEnforcer struct {

test/functional/lcow_policy_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ import (
2525
)
2626

2727
func genValidContainerID(t *testing.T, rng *rand.Rand) string {
28+
t.Helper()
2829
randBytes := make([]byte, 32)
2930
if _, err := rng.Read(randBytes); err != nil {
3031
t.Fatalf("failed to generate random bytes for container ID: %v", err)
3132
}
3233
return hex.EncodeToString(randBytes)
3334
}
3435

35-
3636
func setupScratchTemplate(ctx context.Context, tb testing.TB) string {
3737
tb.Helper()
3838
opts := defaultLCOWOptions(ctx, tb)

0 commit comments

Comments
 (0)