Skip to content

Commit e0740c2

Browse files
committed
fixup_settingsgetvalue
1 parent d5a687c commit e0740c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commands/service_settings.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ func (s *arduinoCoreServerImpl) SettingsGetValue(ctx context.Context, req *rpc.S
148148
}
149149

150150
switch req.ValueFormat {
151-
case "json":
151+
case "", "json":
152152
valueJson, err := json.Marshal(value)
153153
if err != nil {
154154
return nil, fmt.Errorf("error marshalling value: %v", err)

0 commit comments

Comments
 (0)