cleaning, bumping and enhancing (#243)

* some cleanup
- updating constant in group to have explicit type (SA9004)
- commenting out empty branch (SA9003)

* bump go mods

* refactor of nested if statements
closes #175

* stop using ioutil as it is deprecated
This commit is contained in:
Tobias Lindberg
2023-09-22 23:12:21 +02:00
committed by GitHub
parent 1a3378e735
commit c9db9729f9
6 changed files with 84 additions and 70 deletions

View File

@@ -17,7 +17,7 @@ type CarRegionAPI string
const (
ChinaAPI CarRegionAPI = "China"
GlobalAPI = "Global"
GlobalAPI CarRegionAPI = "Global"
)
// decryptAccessToken funct to decrypt tokens from database
@@ -97,9 +97,11 @@ func decryptAccessToken(data string, encryptionKey string) string {
panic(err.Error())
}
if gin.IsDebugging() {
// fmt.Printf("[debug] decryptAccessToken - Decrypted: %s\n", plaintext)
}
/*
if gin.IsDebugging() {
fmt.Printf("[debug] decryptAccessToken - Decrypted: %s\n", plaintext)
}
*/
return string(plaintext)
}