mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 04:10:20 +08:00
fix: improvde code logic (#285)
Signed-off-by: sh1luo <690898835@qq.com>
This commit is contained in:
@ -72,9 +72,9 @@ func getToken(owner string, name string) *Token {
|
||||
|
||||
if existed {
|
||||
return &token
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func getTokenByCode(code string) *Token {
|
||||
@ -86,9 +86,9 @@ func getTokenByCode(code string) *Token {
|
||||
|
||||
if existed {
|
||||
return &token
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func GetToken(id string) *Token {
|
||||
|
Reference in New Issue
Block a user