diff options
Diffstat (limited to 'cmd/gotosocial/action/debug/config/config.go')
| -rw-r--r-- | cmd/gotosocial/action/debug/config/config.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cmd/gotosocial/action/debug/config/config.go b/cmd/gotosocial/action/debug/config/config.go index bc2c379ca..f79f5234d 100644 --- a/cmd/gotosocial/action/debug/config/config.go +++ b/cmd/gotosocial/action/debug/config/config.go @@ -32,11 +32,8 @@ var Config action.GTSAction = func(ctx context.Context) (err error) { // Marshal configuration to a raw JSON map config.Config(func(cfg *config.Configuration) { - raw, err = cfg.MarshalMap() + raw = cfg.MarshalMap() }) - if err != nil { - return err - } enc := json.NewEncoder(os.Stdout) enc.SetIndent("", " ") |
