Simplify variable declaration

pull/4/head
maru 7 months ago
parent cbcc68f8e4
commit ec33952aaa
No known key found for this signature in database
GPG Key ID: 37689350E9CD0F0D

@ -225,8 +225,7 @@ func handleSaveData(w http.ResponseWriter, r *http.Request) {
return
}
var trainerId = 0
var secretId = 0
var trainerId, secretId int
if r.URL.Path != "/savedata/update" || datatype == 1 {
if r.URL.Query().Has("trainerId") && r.URL.Query().Has("secretId") {

Loading…
Cancel
Save