@@ -13,56 +13,53 @@ type NullDownloader struct{}
1313
1414var _ Downloader = & NullDownloader {}
1515
16- // SetContext set context
17- func (n NullDownloader ) SetContext (_ context.Context ) {}
18-
1916// GetRepoInfo returns a repository information
20- func (n NullDownloader ) GetRepoInfo () (* Repository , error ) {
17+ func (n NullDownloader ) GetRepoInfo (_ context. Context ) (* Repository , error ) {
2118 return nil , ErrNotSupported {Entity : "RepoInfo" }
2219}
2320
2421// GetTopics return repository topics
25- func (n NullDownloader ) GetTopics () ([]string , error ) {
22+ func (n NullDownloader ) GetTopics (_ context. Context ) ([]string , error ) {
2623 return nil , ErrNotSupported {Entity : "Topics" }
2724}
2825
2926// GetMilestones returns milestones
30- func (n NullDownloader ) GetMilestones () ([]* Milestone , error ) {
27+ func (n NullDownloader ) GetMilestones (_ context. Context ) ([]* Milestone , error ) {
3128 return nil , ErrNotSupported {Entity : "Milestones" }
3229}
3330
3431// GetReleases returns releases
35- func (n NullDownloader ) GetReleases () ([]* Release , error ) {
32+ func (n NullDownloader ) GetReleases (_ context. Context ) ([]* Release , error ) {
3633 return nil , ErrNotSupported {Entity : "Releases" }
3734}
3835
3936// GetLabels returns labels
40- func (n NullDownloader ) GetLabels () ([]* Label , error ) {
37+ func (n NullDownloader ) GetLabels (_ context. Context ) ([]* Label , error ) {
4138 return nil , ErrNotSupported {Entity : "Labels" }
4239}
4340
4441// GetIssues returns issues according start and limit
45- func (n NullDownloader ) GetIssues (page , perPage int ) ([]* Issue , bool , error ) {
42+ func (n NullDownloader ) GetIssues (_ context. Context , page , perPage int ) ([]* Issue , bool , error ) {
4643 return nil , false , ErrNotSupported {Entity : "Issues" }
4744}
4845
4946// GetComments returns comments of an issue or PR
50- func (n NullDownloader ) GetComments (commentable Commentable ) ([]* Comment , bool , error ) {
47+ func (n NullDownloader ) GetComments (_ context. Context , commentable Commentable ) ([]* Comment , bool , error ) {
5148 return nil , false , ErrNotSupported {Entity : "Comments" }
5249}
5350
5451// GetAllComments returns paginated comments
55- func (n NullDownloader ) GetAllComments (page , perPage int ) ([]* Comment , bool , error ) {
52+ func (n NullDownloader ) GetAllComments (_ context. Context , page , perPage int ) ([]* Comment , bool , error ) {
5653 return nil , false , ErrNotSupported {Entity : "AllComments" }
5754}
5855
5956// GetPullRequests returns pull requests according page and perPage
60- func (n NullDownloader ) GetPullRequests (page , perPage int ) ([]* PullRequest , bool , error ) {
57+ func (n NullDownloader ) GetPullRequests (_ context. Context , page , perPage int ) ([]* PullRequest , bool , error ) {
6158 return nil , false , ErrNotSupported {Entity : "PullRequests" }
6259}
6360
6461// GetReviews returns pull requests review
65- func (n NullDownloader ) GetReviews (reviewable Reviewable ) ([]* Review , error ) {
62+ func (n NullDownloader ) GetReviews (_ context. Context , reviewable Reviewable ) ([]* Review , error ) {
6663 return nil , ErrNotSupported {Entity : "Reviews" }
6764}
6865
0 commit comments