build: address ginkgolinter warnings

Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
Niels de Vos
2023-06-02 11:54:25 +02:00
committed by mergify[bot]
parent dee6be6832
commit 4a6c27274f
3 changed files with 8 additions and 8 deletions

View File

@ -35,7 +35,7 @@ import (
func getSnapshotClass(path string) snapapi.VolumeSnapshotClass {
sc := snapapi.VolumeSnapshotClass{}
err := unmarshal(path, &sc)
Expect(err).Should(BeNil())
Expect(err).ShouldNot(HaveOccurred())
return sc
}
@ -43,7 +43,7 @@ func getSnapshotClass(path string) snapapi.VolumeSnapshotClass {
func getSnapshot(path string) snapapi.VolumeSnapshot {
sc := snapapi.VolumeSnapshot{}
err := unmarshal(path, &sc)
Expect(err).Should(BeNil())
Expect(err).ShouldNot(HaveOccurred())
return sc
}