From 95cb6ac4469ca4f6c2c4d1a3e2c79db60e07faca Mon Sep 17 00:00:00 2001 From: Joel Rebello Date: Thu, 29 Feb 2024 11:40:17 +0100 Subject: [PATCH] outofband/bmc: return err as is --- internal/outofband/bmc.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/internal/outofband/bmc.go b/internal/outofband/bmc.go index 9e86ea71..ff315e0b 100644 --- a/internal/outofband/bmc.go +++ b/internal/outofband/bmc.go @@ -208,11 +208,7 @@ func (b *bmc) ResetBMC(ctx context.Context) error { defer b.ReinitializeClient(ctx) _, err = b.with(provider).ResetBMC(ctx, "GracefulRestart") - if err != nil { - return err - } - - return nil + return err } // Inventory queries the BMC for the device inventory and returns an object with the device inventory.