mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-10 02:53:12 +00:00
chore: unnecessary use of fmt.Sprintf
This commit is contained in:
parent
36dff630d6
commit
005d6cf4cf
|
@ -2,7 +2,6 @@ package clashapi
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"sort"
|
"sort"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
@ -176,7 +175,7 @@ func updateProxy(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
if !selector.SelectOutbound(req.Name) {
|
if !selector.SelectOutbound(req.Name) {
|
||||||
render.Status(r, http.StatusBadRequest)
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue