fix two issues found by nilness

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger
2026-02-23 09:53:35 +01:00
parent ec0f63c6e5
commit 5e3719c81a
2 changed files with 1 additions and 6 deletions

View File

@@ -55,9 +55,6 @@ func ls(_ *cobra.Command, args []string) error {
if err != nil {
return fmt.Errorf("setting up grpc client for podman service: %w", err)
}
if err != nil {
return fmt.Errorf("setting up grpc client for podman service: %w", err)
}
reflectionClient := reflectionv1.NewServerReflectionClient(grpcClient)
if reflectionClient == nil {
return fmt.Errorf("setting up client for reflection grpc service: %w", err)

View File

@@ -418,9 +418,7 @@ func (ir *ImageEngine) Build(_ context.Context, containerFiles []string, opts en
if err == nil {
return report, nil
}
if err != nil {
logrus.Debugf("BuildLocal failed: %v", err)
}
logrus.Debugf("BuildLocal failed: %v", err)
var errModel *errorhandling.ErrorModel
if errors.As(err, &errModel) {