diff --git a/plugins/todoist/api_token.go b/plugins/todoist/api_token.go index 718da863a..542a98df2 100644 --- a/plugins/todoist/api_token.go +++ b/plugins/todoist/api_token.go @@ -68,7 +68,7 @@ func todoistConfig(in sdk.ProvisionInput) ([]byte, error) { config := Config{ Token: in.ItemFields[fieldname.Token], } - contents, err := json.MarshalIndent(&config, "", " ") + contents, err := json.Marshal(&config) if err != nil { return nil, err } diff --git a/plugins/todoist/test-fixtures/config.json b/plugins/todoist/test-fixtures/config.json index 985e5ab9b..21d1aff4a 100644 --- a/plugins/todoist/test-fixtures/config.json +++ b/plugins/todoist/test-fixtures/config.json @@ -1,3 +1 @@ -{ - "token": "dbq9y65uguqrk4ognfhdiwcc0zx34z20pexample" -} \ No newline at end of file +{"token":"dbq9y65uguqrk4ognfhdiwcc0zx34z20pexample"} \ No newline at end of file