Skip to content

Commit 50fa151

Browse files
committed
lint
1 parent 38c6470 commit 50fa151

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

support/support.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -560,19 +560,19 @@ func Summarize(b *Bundle) (msgs []string) {
560560
if b.Deployment.HealthReport.ProvisionerDaemons.Error != nil {
561561
msgs = append(msgs, "Deployment health: "+*b.Deployment.HealthReport.ProvisionerDaemons.Error)
562562
}
563-
for _, warn := range *&b.Deployment.HealthReport.ProvisionerDaemons.Warnings {
563+
for _, warn := range b.Deployment.HealthReport.ProvisionerDaemons.Warnings {
564564
msgs = append(msgs, "Deployment health: "+warn.String())
565565
}
566566
if b.Deployment.HealthReport.Websocket.Error != nil {
567567
msgs = append(msgs, "Deployment health: "+*b.Deployment.HealthReport.Websocket.Error)
568568
}
569-
for _, warn := range *&b.Deployment.HealthReport.Websocket.Warnings {
569+
for _, warn := range b.Deployment.HealthReport.Websocket.Warnings {
570570
msgs = append(msgs, "Deployment health: "+warn)
571571
}
572572
if b.Deployment.HealthReport.WorkspaceProxy.Error != nil {
573573
msgs = append(msgs, "Deployment health: "+*b.Deployment.HealthReport.WorkspaceProxy.Error)
574574
}
575-
for _, warn := range *&b.Deployment.HealthReport.WorkspaceProxy.Warnings {
575+
for _, warn := range b.Deployment.HealthReport.WorkspaceProxy.Warnings {
576576
msgs = append(msgs, "Deployment health: "+warn.String())
577577
}
578578
}

support/support_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ func assertNotNilNotEmpty[T any](t *testing.T, v T, msg string) {
249249
}
250250

251251
func Test_Summarize(t *testing.T) {
252+
t.Parallel()
252253
for _, tt := range []struct {
253254
name string
254255
in support.Bundle
@@ -275,6 +276,7 @@ func Test_Summarize(t *testing.T) {
275276
} {
276277
tt := tt
277278
t.Run(tt.name, func(t *testing.T) {
279+
t.Parallel()
278280
actual := support.Summarize(&tt.in)
279281
if len(tt.expected) == 0 {
280282
assert.Empty(t, actual)

0 commit comments

Comments
 (0)