Skip to content

Commit

Permalink
add error check
Browse files Browse the repository at this point in the history
Signed-off-by: David Schneiderbauer <[email protected]>
  • Loading branch information
daviian committed Sep 28, 2017
1 parent dd48773 commit 54f684d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion models/migrations/v39.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ func addTimetracking(x *xorm.Engine) error {
}
//Updating existing issue units
units := make([]*RepoUnit, 0, 100)
x.Where("`type` = ?", V16UnitTypeIssues).Find(units)
err := x.Where("`type` = ?", V16UnitTypeIssues).Find(units)
if err != nil {
return fmt.Errorf("Query repo units: %v", err)
}
for _, unit := range units {
if unit.Config != nil {
continue
Expand Down

0 comments on commit 54f684d

Please sign in to comment.