Simplify variable declaration
parent
cbcc68f8e4
commit
ec33952aaa
|
@ -225,8 +225,7 @@ func handleSaveData(w http.ResponseWriter, r *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
var trainerId = 0
|
var trainerId, secretId int
|
||||||
var secretId = 0
|
|
||||||
|
|
||||||
if r.URL.Path != "/savedata/update" || datatype == 1 {
|
if r.URL.Path != "/savedata/update" || datatype == 1 {
|
||||||
if r.URL.Query().Has("trainerId") && r.URL.Query().Has("secretId") {
|
if r.URL.Query().Has("trainerId") && r.URL.Query().Has("secretId") {
|
||||||
|
|
Loading…
Reference in New Issue