Skip to content

Commit b4fc230

Browse files
committed
Fixed linter warning
1 parent 5edef26 commit b4fc230

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

internal/integrationtest/arduino-cli.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import (
2222
"errors"
2323
"fmt"
2424
"io"
25+
"maps"
2526
"os"
2627
"runtime"
2728
"strings"
@@ -199,9 +200,7 @@ func (cli *ArduinoCLI) RunWithContext(ctx context.Context, args ...string) ([]by
199200
// GetDefaultEnv returns a copy of the default execution env used with the Run method.
200201
func (cli *ArduinoCLI) GetDefaultEnv() map[string]string {
201202
res := map[string]string{}
202-
for k, v := range cli.cliEnvVars {
203-
res[k] = v
204-
}
203+
maps.Copy(cli.cliEnvVars, res)
205204
return res
206205
}
207206

0 commit comments

Comments
 (0)