From 1d177f00d291bd3dc56517a8e9c6868875d5b65f Mon Sep 17 00:00:00 2001 From: Justin Chadwell Date: Wed, 19 Jul 2023 14:43:50 +0100 Subject: [PATCH] chore: tidy splitToDriverPairs to avoid unneccessary int Signed-off-by: Justin Chadwell --- build/build.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/build.go b/build/build.go index 0d7ef093..1cd20ee2 100644 --- a/build/build.go +++ b/build/build.go @@ -267,11 +267,11 @@ func resolveDriversBase(ctx context.Context, nodes []builder.Node, opt map[strin } undetectedPlatform := false - allPlatforms := map[string]int{} + allPlatforms := map[string]struct{}{} for _, opt := range opt { for _, p := range opt.Platforms { k := platforms.Format(p) - allPlatforms[k] = -1 + allPlatforms[k] = struct{}{} if _, ok := availablePlatforms[k]; !ok { undetectedPlatform = true }