mirror of
https://github.com/tobiasehlert/teslamateapi.git
synced 2026-02-27 09:54:18 +08:00
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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user