mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-24 12:14:27 +02:00
Use named ActionType constants in template helper (#2545)
This commit is contained in:
1 parent
4eed85db56
commit
acecedc410
2 files changed
+13
-15
No files matched your search
+2
-3
@@ -98,9 +98,8 @@ func (a *Action) AfterSet(colName string, _ xorm.Cell) {
|
||||
}
|
||||
|
||||
// GetOpType gets the ActionType of this action.
|
||||
// TODO: change return type to ActionType ?
|
||||
func (a *Action) GetOpType() int {
|
||||
return int(a.OpType)
|
||||
func (a *Action) GetOpType() ActionType {
|
||||
return a.OpType
|
||||
}
|
||||
|
||||
func (a *Action) loadActUser() {
|
||||
|
||||
Reference in new issue
Block a user