Skip to content

Commit 3d03d7a

Browse files
committed
Add linter exception
Signed-off-by: Javier Rodriguez <javier@chainloop.dev>
1 parent 692faf7 commit 3d03d7a

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

app/cli/pkg/action/attestation_add.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ func (action *AttestationAdd) Run(ctx context.Context, attestationID, materialNa
104104
return nil, fmt.Errorf("failed to get CAS backend: %w", getCASBackendErr)
105105
}
106106
if connectionCloserFn != nil {
107+
// nolint: errcheck
107108
defer connectionCloserFn()
108109
}
109110
}

app/cli/pkg/action/attestation_init.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ func (action *AttestationInit) Run(ctx context.Context, opts *AttestationInitRun
238238
action.Logger.Warn().Err(err).Msg("unexpected error getting CAS backend")
239239
}
240240
if connectionCloserFn != nil {
241+
// nolint: errcheck
241242
defer connectionCloserFn()
242243
}
243244
}

0 commit comments

Comments
 (0)