mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-04-04 20:17:15 +08:00
Simplify variable declaration
This commit is contained in:
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…
x
Reference in New Issue
Block a user