From 076a50b2e98413a8d35e60281d229e4c13e2a7c9 Mon Sep 17 00:00:00 2001 From: mudler Date: Tue, 24 Jan 2023 17:53:38 +0100 Subject: [PATCH] Drop unnecessary condition Signed-off-by: mudler --- cmd/discovery/client/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/discovery/client/client.go b/cmd/discovery/client/client.go index 548733f..f522b9d 100644 --- a/cmd/discovery/client/client.go +++ b/cmd/discovery/client/client.go @@ -106,7 +106,7 @@ func (c *Client) waitPass(p *block.Partition, attempts int) (pass string, err er return c.decryptPassphrase(pass) } - if err == nil || err == errPartNotFound { // passphrase not encrypted or not available + if err == nil { // passphrase available, no errors return }