From 8b8fb4344c17356eed7b721a57ae367fa5910bd2 Mon Sep 17 00:00:00 2001 From: HystericalDragon Date: Sat, 27 Apr 2024 22:30:55 +0800 Subject: [PATCH] Remove unused encoder --- experimental/libbox/config.go | 1 - 1 file changed, 1 deletion(-) diff --git a/experimental/libbox/config.go b/experimental/libbox/config.go index 42fc878f..bad61dbc 100644 --- a/experimental/libbox/config.go +++ b/experimental/libbox/config.go @@ -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)