Skip to content

Commit 005d6cf

Browse files
authored
chore: unnecessary use of fmt.Sprintf
1 parent 36dff63 commit 005d6cf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

experimental/clashapi/proxies.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package clashapi
22

33
import (
44
"context"
5-
"fmt"
65
"net/http"
76
"sort"
87
"strconv"
@@ -176,7 +175,7 @@ func updateProxy(w http.ResponseWriter, r *http.Request) {
176175

177176
if !selector.SelectOutbound(req.Name) {
178177
render.Status(r, http.StatusBadRequest)
179-
render.JSON(w, r, newError(fmt.Sprintf("Selector update error: not found")))
178+
render.JSON(w, r, newError("Selector update error: not found"))
180179
return
181180
}
182181

0 commit comments

Comments
 (0)