Drop unnecessary condition

Signed-off-by: mudler <mudler@c3os.io>
This commit is contained in:
mudler 2023-01-24 17:53:38 +01:00
parent f8e7a0df87
commit 076a50b2e9

View File

@ -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
}