mirror of
https://github.com/containers/podman.git
synced 2026-03-13 08:01:19 +08:00
fix two issues found by nilness
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user