Skip to content

Commit

Permalink
fix formatting with gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ardnew committed Jan 25, 2024
1 parent 47c09a8 commit aa6dee6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/cli/config/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func initGetCommand() *cobra.Command {
func runGetCommand(cmd *cobra.Command, args []string) {
logrus.Info("Executing `arduino-cli config get`")

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

Expand Down
2 changes: 1 addition & 1 deletion internal/integrationtest/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ func TestGet(t *testing.T) {
// Get multiple key values
stdout, _, err = cli.Run("config", "get", "logging.format", "logging.level", "--format", "json", "--config-file", "arduino-cli.yaml")
require.NoError(t, err)
require.Equal(t,`"text"` + "\n" + `"info"`, stdout)
require.Equal(t, `"text"`+"\n"+`"info"`, stdout)

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

0 comments on commit aa6dee6

Please sign in to comment.