Skip to content

Commit 4f0048a

Browse files
committed
Oops, avoid a nil map
1 parent 84e769d commit 4f0048a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gitpod-network-check/cmd/checks.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,9 @@ func launchInstances(ctx context.Context, ec2Client *ec2.Client, subnets []strin
270270
}
271271

272272
instanceIds = append(instanceIds, instanceId)
273+
if Subnets == nil {
274+
Subnets = make(map[string]bool)
275+
}
273276
Subnets[subnet] = true
274277
}
275278

0 commit comments

Comments
 (0)