1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-04-18 00:47:48 -04:00

chore: simplify IsActions

This commit is contained in:
Jason Song 2023-01-05 16:03:21 +08:00
parent eee662442a
commit c510fdbcf1
No known key found for this signature in database
GPG Key ID: 8402EEEE4511A8B5

View File

@ -60,8 +60,5 @@ func NewActionsUser() *User {
}
func (u *User) IsActions() bool {
if u == nil {
return false
}
return u.ID == ActionsUserID
return u != nil && u.ID == ActionsUserID
}