Skip to content

Commit d1526b2

Browse files
authored
clear lint errors (#18)
1 parent b2c0d22 commit d1526b2

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/TibiaHighscoresV3.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,7 @@ func TibiaHighscoresV3(c *gin.Context) {
121121
// Creating empty HighscoreData var
122122
var HighscoreData []Highscore
123123
var HighscoreDataVocation, HighscoreDataWorld, HighscoreDataTitle string
124-
var HighscoreDataRank, HighscoreDataLevel, HighscoreDataValue int
125-
var HighscoreAge int = 0
124+
var HighscoreDataRank, HighscoreDataLevel, HighscoreDataValue, HighscoreAge int
126125

127126
// getting age of data
128127
regex1 := regexp.MustCompile(`.*<div class="Text">Highscores.*Last Update: ([0-9]+) minutes ago.*`)

src/webserver.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func main() {
8585
router := gin.Default()
8686

8787
// disable proxy feature of gin
88-
router.SetTrustedProxies(nil)
88+
_ = router.SetTrustedProxies(nil)
8989

9090
// Ping-endpoint
9191
router.GET("/ping", func(c *gin.Context) {
@@ -146,7 +146,7 @@ func main() {
146146
})
147147

148148
// Start the router
149-
router.Run() // listen and serve on 0.0.0.0:8080 (for windows "localhost:8080")
149+
_ = router.Run() // listen and serve on 0.0.0.0:8080 (for windows "localhost:8080")
150150
}
151151

152152
// TibiaDataInitializer func - init things at beginning

0 commit comments

Comments
 (0)