Skip to content

Commit fcebde8

Browse files
committed
remove LOOP labels
Signed-off-by: Jan Kantert <[email protected]>
1 parent 2604c79 commit fcebde8

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

pkg/bundle/source.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -371,11 +371,10 @@ func deduplicateAndSortBundles(bundles []string) ([]string, error) {
371371
for _, cert := range bundles {
372372
certBytes := []byte(cert)
373373

374-
LOOP:
375374
for {
376375
block, certBytes = pem.Decode(certBytes)
377376
if block == nil {
378-
break LOOP
377+
break
379378
}
380379

381380
if block.Type != "CERTIFICATE" {

test/env/data.go

+3-4
Original file line numberDiff line numberDiff line change
@@ -217,11 +217,10 @@ func CheckBundleSyncedContains(ctx context.Context, cl client.Client, name strin
217217
var block *pem.Block
218218
certBytes := []byte(containedData)
219219

220-
LOOP:
221220
for {
222221
block, certBytes = pem.Decode(certBytes)
223222
if block == nil {
224-
break LOOP
223+
break
225224
}
226225

227226
if block.Type != "CERTIFICATE" {
@@ -236,11 +235,11 @@ func CheckBundleSyncedContains(ctx context.Context, cl client.Client, name strin
236235
certBytes = []byte(got)
237236
// check that there are a nonzero number of valid certs remaining
238237
found := false
239-
LOOP2:
238+
240239
for {
241240
block, certBytes = pem.Decode(certBytes)
242241
if block == nil {
243-
break LOOP2
242+
break
244243
}
245244

246245
if block.Type != "CERTIFICATE" {

0 commit comments

Comments
 (0)