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 6efcca6

Browse files
committed
fix formatting with gofmt
1 parent 926d850 commit 6efcca6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎internal/cli/config/get.go‎

Lines changed: 2 additions & 2 deletions
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

‎internal/integrationtest/config/config_test.go‎

Lines changed: 1 addition & 1 deletion
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)

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