diff options
Diffstat (limited to 'pkg/api/api0')
-rw-r--r-- | pkg/api/api0/playerinfo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/api0/playerinfo.go b/pkg/api/api0/playerinfo.go index db0e42a..4c167e6 100644 --- a/pkg/api/api0/playerinfo.go +++ b/pkg/api/api0/playerinfo.go @@ -44,7 +44,7 @@ func pdataFilterLoadout(path ...string) bool { func (h *Handler) handlePlayer(w http.ResponseWriter, r *http.Request) { var pdataFilter func(...string) bool var pdataFilterName string - switch pdataFilterName := strings.TrimPrefix(r.URL.Path, "/player/"); pdataFilterName { + switch pdataFilterName = strings.TrimPrefix(r.URL.Path, "/player/"); pdataFilterName { case "pdata": pdataFilter = nil case "info": |