Remove unused encoder

This commit is contained in:
HystericalDragon 2024-04-27 16:50:02 +08:00
parent 0ae1afef44
commit eee0e6d870
No known key found for this signature in database
GPG Key ID: E205724F8931D99B

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)