Skip to content

Commit

Permalink
chore: unnecessary use of fmt.Sprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill authored Nov 15, 2023
1 parent 36dff63 commit 005d6cf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions experimental/clashapi/proxies.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package clashapi

import (
"context"
"fmt"
"net/http"
"sort"
"strconv"
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 005d6cf

Please sign in to comment.