Chore: Configure go-ruleguard via golangci-lint (#28419)

* Chore: Configure go-ruleguard via golangci-lint

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
Arve Knudsen
2020-12-11 11:45:17 +01:00
committed by GitHub
parent 12661e8a9d
commit e2351f7951
3 changed files with 516 additions and 1 deletions
+1 -1
View File
@@ -86,6 +86,6 @@ func IsOAuthPassThruEnabled(ds *models.DataSource) bool {
func tokensEq(t1, t2 *oauth2.Token) bool {
return t1.AccessToken == t2.AccessToken &&
t1.RefreshToken == t2.RefreshToken &&
t1.Expiry == t2.Expiry &&
t1.Expiry.Equal(t2.Expiry) &&
t1.TokenType == t2.TokenType
}