mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 02:33:34 +00:00
cleanup: address golangci 'testifylint' issues
The new 'testify' linter complains about incorrect usage of Equal() and similar calls. When comparing to an empty value, Empty() should be used instead. Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
committed by
mergify[bot]
parent
457ffe884a
commit
300acd6fb9
@ -94,7 +94,7 @@ func TestDefaultVaultDestroyKeys(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
keyContext := vc.getDeleteKeyContext()
|
||||
destroySecret, ok := keyContext[loss.DestroySecret]
|
||||
require.NotEqual(t, "", destroySecret)
|
||||
require.NotEmpty(t, destroySecret)
|
||||
require.True(t, ok)
|
||||
|
||||
// setting vaultDestroyKeys to !true should remove the loss.DestroySecret entry
|
||||
|
Reference in New Issue
Block a user