Skip to content

Commit 18da479

Browse files
committed
clean up and fix tests
1 parent b1cb614 commit 18da479

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

pkg/github/dependencies.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ func NewRequestDeps(
229229
lockdownMode bool,
230230
repoAccessOpts []lockdown.RepoAccessOption,
231231
t translations.TranslationHelperFunc,
232-
flags FeatureFlags,
233232
contentWindowSize int,
234233
) *RequestDeps {
235234
return &RequestDeps{
@@ -238,7 +237,6 @@ func NewRequestDeps(
238237
lockdownMode: lockdownMode,
239238
RepoAccessOpts: repoAccessOpts,
240239
T: t,
241-
Flags: flags,
242240
ContentWindowSize: contentWindowSize,
243241
}
244242
}

pkg/github/server_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ func (s stubDeps) GetRawClient(ctx context.Context) (*raw.Client, error) {
5555
func (s stubDeps) GetRepoAccessCache(ctx context.Context) (*lockdown.RepoAccessCache, error) {
5656
return s.repoAccessCache, nil
5757
}
58-
func (s stubDeps) GetT() translations.TranslationHelperFunc { return s.t }
59-
func (s stubDeps) GetFlags() FeatureFlags { return s.flags }
60-
func (s stubDeps) GetContentWindowSize() int { return s.contentWindowSize }
58+
func (s stubDeps) GetT() translations.TranslationHelperFunc { return s.t }
59+
func (s stubDeps) GetFlags(ctx context.Context) FeatureFlags { return s.flags }
60+
func (s stubDeps) GetContentWindowSize() int { return s.contentWindowSize }
6161

6262
// Helper functions to create stub client functions for error testing
6363
func stubClientFnFromHTTP(httpClient *http.Client) func(context.Context) (*github.Client, error) {

pkg/http/server.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,6 @@ func RunHTTPServer(cfg HTTPServerConfig) error {
8989
cfg.LockdownMode,
9090
repoAccessOpts,
9191
t,
92-
github.FeatureFlags{
93-
LockdownMode: cfg.LockdownMode,
94-
},
9592
cfg.ContentWindowSize,
9693
)
9794

0 commit comments

Comments
 (0)