Skip to content

Commit 889082e

Browse files
committed
Fix lint
1 parent ab21418 commit 889082e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

models/actions/variable.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,5 +156,8 @@ func CountWrongRepoLevelVariables(ctx context.Context) (int64, error) {
156156

157157
func UpdateWrongRepoLevelVariables(ctx context.Context) (int64, error) {
158158
result, err := db.GetEngine(ctx).Exec("UPDATE `action_variable` SET `owner_id` = 0 WHERE `repo_id` > 0 AND `owner_id` > 0")
159-
return err
159+
if err != nil {
160+
return 0, err
161+
}
162+
return result.RowsAffected()
160163
}

0 commit comments

Comments
 (0)