From eaf266a6359b1a2d170f631cbb5b9abbc99a9707 Mon Sep 17 00:00:00 2001 From: Jason Song Date: Tue, 6 Dec 2022 16:53:46 +0800 Subject: [PATCH] chore: fix lint --- models/actions/run.go | 1 - models/actions/runner.go | 1 - 2 files changed, 2 deletions(-) diff --git a/models/actions/run.go b/models/actions/run.go index 35ed3715f6..14b14fe785 100644 --- a/models/actions/run.go +++ b/models/actions/run.go @@ -216,7 +216,6 @@ func GetRunByIndex(ctx context.Context, repoID, index int64) (*ActionRun, error) return nil, err } else if !has { return nil, fmt.Errorf("run with index %d %d: %w", repoID, index, util.ErrNotExist) - } return run, nil diff --git a/models/actions/runner.go b/models/actions/runner.go index c6aa33138d..3658e2bc09 100644 --- a/models/actions/runner.go +++ b/models/actions/runner.go @@ -217,7 +217,6 @@ func GetRunnerByID(ctx context.Context, id int64) (*ActionRunner, error) { return nil, err } else if !has { return nil, fmt.Errorf("runner with id %d: %w", id, util.ErrNotExist) - } return &runner, nil }