make use of short declaration of variables and cleanup code

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
Humble Chirammal
2022-04-12 22:48:26 +05:30
parent d45bacb34b
commit f30b14f8fd
16 changed files with 66 additions and 61 deletions

View File

@@ -40,8 +40,8 @@ var class3Parameters = map[string]string{
}
var class4Parameters = map[string]string{
//utils.SnapshotterSecretNameKey: "emptysecret",
//utils.SnapshotterSecretNamespaceKey: "default",
// utils.SnapshotterSecretNameKey: "emptysecret",
// utils.SnapshotterSecretNamespaceKey: "default",
}
var class5Parameters = map[string]string{
@@ -51,8 +51,10 @@ var class5Parameters = map[string]string{
var timeNowMetav1 = metav1.Now()
var content31 = "content3-1"
var claim31 = "claim3-1"
var (
content31 = "content3-1"
claim31 = "claim3-1"
)
var snapshotClasses = []*crdv1.VolumeSnapshotClass{
{