summaryrefslogtreecommitdiffstats
path: root/models/action.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/action.go')
-rw-r--r--models/action.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/models/action.go b/models/action.go
index 8793a4a24d..e687336229 100644
--- a/models/action.go
+++ b/models/action.go
@@ -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() {