Skip to content

Commit

Permalink
remove suffix complement
Browse files Browse the repository at this point in the history
  • Loading branch information
sp-yduck committed Jul 22, 2023
1 parent 740c167 commit 44088d9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions rest/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ func complementURL(url string) string {
if !strings.HasPrefix(url, "http") {
url = "http://" + url
}
if !strings.HasSuffix(url, "/api2/json") {
url += "/api2/json"
}
return url
}

Expand Down

0 comments on commit 44088d9

Please sign in to comment.