summaryrefslogtreecommitdiffstats
path: root/models/migrations/v16.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/migrations/v16.go')
-rw-r--r--models/migrations/v16.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/models/migrations/v16.go b/models/migrations/v16.go
index ef342a5f88..8ce37ea7db 100644
--- a/models/migrations/v16.go
+++ b/models/migrations/v16.go
@@ -119,9 +119,5 @@ func addUnitsToTables(x *xorm.Engine) error {
}
}
- if err := sess.Commit(); err != nil {
- return err
- }
-
- return nil
+ return sess.Commit()
}