Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4f8f9df

Browse files
committed
Fixed linter warning
1 parent fe2044a commit 4f8f9df

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎internal/integrationtest/arduino-cli.go‎

Lines changed: 2 additions & 3 deletions
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(res, cli.cliEnvVars)
205204
return res
206205
}
207206

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /