Skip to content

Commit 4322634

Browse files
committed
fix lint
1 parent 62eaae6 commit 4322634

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/actions/commit_status.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ func GetRunsFromCommitStatuses(ctx context.Context, statuses []*git_model.Commit
6565
if err != nil {
6666
return nil, fmt.Errorf("getActionRunAndJobIndexFromCommitStatus: %w", err)
6767
}
68-
run, ok := runMap[runIndex]
68+
_, ok := runMap[runIndex]
6969
if !ok {
70-
run, err = actions_model.GetRunByIndex(ctx, status.RepoID, runIndex)
70+
run, err := actions_model.GetRunByIndex(ctx, status.RepoID, runIndex)
7171
if err != nil {
7272
if errors.Is(err, util.ErrNotExist) {
7373
// the run may be deleted manually, just skip it

0 commit comments

Comments
 (0)