aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorpg9182 <96569817+pg9182@users.noreply.github.com>2022-10-20 01:01:47 -0400
committerpg9182 <96569817+pg9182@users.noreply.github.com>2022-10-20 01:01:47 -0400
commitf0051d99fd62a3776987bb25cf7f147022c2b93b (patch)
tree90e22ed3b62826250a3c2b73f9d2590e39ed51d5 /pkg
parent777447ee8cb515b25de36109f4ee75697157a93e (diff)
downloadAtlas-f0051d99fd62a3776987bb25cf7f147022c2b93b.tar.gz
Atlas-f0051d99fd62a3776987bb25cf7f147022c2b93b.zip
pkg/api/api0: Fix pdataFilterName regression
Diffstat (limited to 'pkg')
-rw-r--r--pkg/api/api0/playerinfo.go2
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":