mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-05 00:15:44 +00:00
Fix staticcheck SA4023 warnings in call.go and sign.go
Signed-off-by: Jan Rodák <hony.com@seznam.cz>
This commit is contained in:
parent
fc433a9b27
commit
d222b0ae07
2 changed files with 1 additions and 4 deletions
|
|
@ -103,9 +103,6 @@ func noop(_ *cobra.Command, args []string) error {
|
|||
return fmt.Errorf("setting up grpc client for podman service: %w", err)
|
||||
}
|
||||
noopClient := grpcpb.NewNoopClient(grpcClient)
|
||||
if noopClient == nil {
|
||||
return fmt.Errorf("setting up client for noop grpc service: %w", err)
|
||||
}
|
||||
var request grpcpb.NoopRequest
|
||||
if encoded := strings.Join(args, ""); len(encoded) > 0 {
|
||||
if err := json.Unmarshal([]byte(encoded), &request); err != nil {
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ func PrepareSigning(pushOpts *entities.ImagePushOptions, cliOpts *SigningCLIOnly
|
|||
if passphrase != "" {
|
||||
opts = append(opts, simplesequoia.WithPassphrase(passphrase))
|
||||
}
|
||||
signer, err := simplesequoia.NewSigner(opts...)
|
||||
signer, err := simplesequoia.NewSigner(opts...) //nolint:staticcheck,nolintlint // SA4023 false positive: stub always errors, real build does not
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error using --sign-by-sq-fingerprint: %w", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue