■ ■ ■ ■ ■ ■
clients/githubrepo/client.go
| skipped 71 lines |
72 | 72 | | return sce.WithMessage(sce.ErrRepoUnreachable, err.Error()) |
73 | 73 | | } |
74 | 74 | | if commitDepth <= 0 { |
75 | | - | client.commitDepth = 30 // default |
76 | | - | } else { |
77 | | - | client.commitDepth = commitDepth |
| 75 | + | commitDepth = 30 // default |
78 | 76 | | } |
| 77 | + | client.commitDepth = commitDepth |
79 | 78 | | client.repo = repo |
80 | 79 | | client.repourl = &repoURL{ |
81 | 80 | | owner: repo.Owner.GetLogin(), |
| skipped 21 lines |
103 | 102 | | client.workflows.init(client.ctx, client.repourl) |
104 | 103 | | |
105 | 104 | | // Setup checkrunsHandler. |
106 | | - | client.checkruns.init(client.ctx, client.repourl, commitDepth) |
| 105 | + | client.checkruns.init(client.ctx, client.repourl, client.commitDepth) |
107 | 106 | | |
108 | 107 | | // Setup statusesHandler. |
109 | 108 | | client.statuses.init(client.ctx, client.repourl) |
| skipped 228 lines |