mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 20:50:19 +08:00
fix: improve code specification (#231)
This commit is contained in:
@ -173,7 +173,7 @@ func (idp *QqIdProvider) GetUserInfo(token *oauth2.Token) (*UserInfo, error) {
|
||||
}
|
||||
|
||||
if qqUserInfo.Ret != 0 {
|
||||
return nil, errors.New(fmt.Sprintf("ret expected 0, got %d", qqUserInfo.Ret))
|
||||
return nil, fmt.Errorf("ret expected 0, got %d", qqUserInfo.Ret)
|
||||
}
|
||||
|
||||
userInfo := UserInfo{
|
||||
|
Reference in New Issue
Block a user