Skip to content

Commit df0f3f3

Browse files
committed
fix name
1 parent 7cb4939 commit df0f3f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

models/git/lfs_lock.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,11 @@ func CheckLFSAccessForRepo(ctx context.Context, ownerID int64, repo *repo_model.
187187
return ErrLFSUnauthorizedAction{repo.ID, "undefined", mode}
188188
}
189189
if ownerID == user_model.ActionsUserID {
190-
taskId, ok := ctx.Value(access_model.ActionsTaskIDKey).(int64)
191-
if !ok || taskId == 0 {
190+
taskID, ok := ctx.Value(access_model.ActionsTaskIDKey).(int64)
191+
if !ok || taskID == 0 {
192192
return ErrLFSUnauthorizedAction{repo.ID, user_model.ActionsUserName, mode}
193193
}
194-
perm, err := access_model.GetActionsUserRepoPermission(ctx, repo, user_model.NewActionsUser(), taskId)
194+
perm, err := access_model.GetActionsUserRepoPermission(ctx, repo, user_model.NewActionsUser(), taskID)
195195
if err != nil {
196196
return err
197197
}

0 commit comments

Comments
 (0)