Skip to content

Commit bc0afd8

Browse files
committed
update format for go1.19
Change-Id: I64fb779b8c377be5e026e7e1cce17ec4fef2ae20
1 parent 22b48c4 commit bc0afd8

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

pkg/gce-cloud-provider/compute/gce-compute.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,9 +1117,13 @@ func (cloud *CloudProvider) waitForSnapshotCreation(ctx context.Context, project
11171117

11181118
// kmsKeyEqual returns true if fetchedKMSKey and storageClassKMSKey refer to the same key.
11191119
// fetchedKMSKey - key returned by the server
1120-
// example: projects/{0}/locations/{1}/keyRings/{2}/cryptoKeys/{3}/cryptoKeyVersions/{4}
1120+
//
1121+
// example: projects/{0}/locations/{1}/keyRings/{2}/cryptoKeys/{3}/cryptoKeyVersions/{4}
1122+
//
11211123
// storageClassKMSKey - key as provided by the client
1122-
// example: projects/{0}/locations/{1}/keyRings/{2}/cryptoKeys/{3}
1124+
//
1125+
// example: projects/{0}/locations/{1}/keyRings/{2}/cryptoKeys/{3}
1126+
//
11231127
// cryptoKeyVersions should be disregarded if the rest of the key is identical.
11241128
func KmsKeyEqual(fetchedKMSKey, storageClassKMSKey string) bool {
11251129
return removeCryptoKeyVersion(fetchedKMSKey) == removeCryptoKeyVersion(storageClassKMSKey)

pkg/gce-pd-csi-driver/node_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ Copyright 2018 The Kubernetes Authors.
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
66
You may obtain a copy of the License at
7-
http://www.apache.org/licenses/LICENSE-2.0
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
810
Unless required by applicable law or agreed to in writing, software
911
distributed under the License is distributed on an "AS IS" BASIS,
1012
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

test/k8s-integration/version.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,10 @@ func mustParseVersion(version string) *version {
131131
}
132132

133133
// Helper function to compare versions.
134-
// -1 -- if left < right
135-
// 0 -- if left == right
136-
// 1 -- if left > right
134+
//
135+
// -1 -- if left < right
136+
// 0 -- if left == right
137+
// 1 -- if left > right
137138
func (v *version) compare(right *version) int {
138139
for i, b := range v.version {
139140
if b > right.version[i] {

0 commit comments

Comments
 (0)