Remove unused encoder

This commit is contained in:
HystericalDragon 2024-04-27 22:30:55 +08:00 committed by 世界
parent e85a38e059
commit 8b8fb4344c
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4
1 changed files with 0 additions and 1 deletions

View File

@ -137,7 +137,6 @@ func FormatConfig(configContent string) (string, error) {
return "", err
}
var buffer bytes.Buffer
json.NewEncoder(&buffer)
encoder := json.NewEncoder(&buffer)
encoder.SetIndent("", " ")
err = encoder.Encode(options)