mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
build: address ginkgolinter
warnings
Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
committed by
mergify[bot]
parent
dee6be6832
commit
4a6c27274f
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user