From 60c80eda4b097bfc87dde8222330b36a6afbaaf7 Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Tue, 14 Nov 2023 20:12:30 +0800 Subject: [PATCH] chore: unnecessary use of fmt.Sprintf --- experimental/clashapi/proxies.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/experimental/clashapi/proxies.go b/experimental/clashapi/proxies.go index f312481c..050efd8d 100644 --- a/experimental/clashapi/proxies.go +++ b/experimental/clashapi/proxies.go @@ -2,7 +2,6 @@ package clashapi import ( "context" - "fmt" "net/http" "sort" "strconv" @@ -176,7 +175,7 @@ func updateProxy(w http.ResponseWriter, r *http.Request) { if !selector.SelectOutbound(req.Name) { render.Status(r, http.StatusBadRequest) - render.JSON(w, r, newError(fmt.Sprintf("Selector update error: not found"))) + render.JSON(w, r, newError("Selector update error: not found")) return }