diff --git a/src/TibiaHighscoresV3.go b/src/TibiaHighscoresV3.go index 659f86b9..535e0b60 100644 --- a/src/TibiaHighscoresV3.go +++ b/src/TibiaHighscoresV3.go @@ -121,8 +121,7 @@ func TibiaHighscoresV3(c *gin.Context) { // Creating empty HighscoreData var var HighscoreData []Highscore var HighscoreDataVocation, HighscoreDataWorld, HighscoreDataTitle string - var HighscoreDataRank, HighscoreDataLevel, HighscoreDataValue int - var HighscoreAge int = 0 + var HighscoreDataRank, HighscoreDataLevel, HighscoreDataValue, HighscoreAge int // getting age of data regex1 := regexp.MustCompile(`.*
Highscores.*Last Update: ([0-9]+) minutes ago.*`) diff --git a/src/webserver.go b/src/webserver.go index 85c96436..3142b24c 100644 --- a/src/webserver.go +++ b/src/webserver.go @@ -85,7 +85,7 @@ func main() { router := gin.Default() // disable proxy feature of gin - router.SetTrustedProxies(nil) + _ = router.SetTrustedProxies(nil) // Ping-endpoint router.GET("/ping", func(c *gin.Context) { @@ -146,7 +146,7 @@ func main() { }) // Start the router - router.Run() // listen and serve on 0.0.0.0:8080 (for windows "localhost:8080") + _ = router.Run() // listen and serve on 0.0.0.0:8080 (for windows "localhost:8080") } // TibiaDataInitializer func - init things at beginning