Skip to content

Commit aa6dee6

Browse files
committed
fix formatting with gofmt
1 parent 47c09a8 commit aa6dee6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: internal/cli/config/get.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func initGetCommand() *cobra.Command {
4747
func runGetCommand(cmd *cobra.Command, args []string) {
4848
logrus.Info("Executing `arduino-cli config get`")
4949

50-
svc := daemon.ArduinoCoreServerImpl{}
50+
svc := daemon.ArduinoCoreServerImpl{}
5151
for _, toGet := range args {
5252
resp, err := svc.SettingsGetValue(cmd.Context(), &rpc.SettingsGetValueRequest{Key: toGet})
5353
if err != nil {
@@ -61,7 +61,7 @@ func runGetCommand(cmd *cobra.Command, args []string) {
6161
// create a dedicated feedback.Result implementation to safely handle
6262
// any changes to the configuration.Settings struct.
6363
type getResult struct {
64-
key string
64+
key string
6565
data interface{}
6666
}
6767

Diff for: internal/integrationtest/config/config_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ func TestGet(t *testing.T) {
844844
// Get multiple key values
845845
stdout, _, err = cli.Run("config", "get", "logging.format", "logging.level", "--format", "json", "--config-file", "arduino-cli.yaml")
846846
require.NoError(t, err)
847-
require.Equal(t,`"text"` + "\n" + `"info"`, stdout)
847+
require.Equal(t, `"text"`+"\n"+`"info"`, stdout)
848848

849849
// Get undefined key
850850
stdout, _, err = cli.Run("config", "get", "foo", "--format", "json", "--config-file", "arduino-cli.yaml")

0 commit comments

Comments
 (0)