chore: fix lint

此提交包含在:
Jason Song
2022-12-06 16:58:49 +08:00
父節點 ab0a60e56a
當前提交 eaf266a635
共有 2 個檔案被更改,包括 0 行新增2 行删除
-1
查看文件
@@ -216,7 +216,6 @@ func GetRunByIndex(ctx context.Context, repoID, index int64) (*ActionRun, error)
return nil, err return nil, err
} else if !has { } else if !has {
return nil, fmt.Errorf("run with index %d %d: %w", repoID, index, util.ErrNotExist) return nil, fmt.Errorf("run with index %d %d: %w", repoID, index, util.ErrNotExist)
} }
return run, nil return run, nil
-1
查看文件
@@ -217,7 +217,6 @@ func GetRunnerByID(ctx context.Context, id int64) (*ActionRunner, error) {
return nil, err return nil, err
} else if !has { } else if !has {
return nil, fmt.Errorf("runner with id %d: %w", id, util.ErrNotExist) return nil, fmt.Errorf("runner with id %d: %w", id, util.ErrNotExist)
} }
return &runner, nil return &runner, nil
} }