Skip to content

Commit 2b1b9bb

Browse files
committed
Linter issues.
1 parent f6d4337 commit 2b1b9bb

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

pkg/http/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func DefaultGitHubMCPServerFactory(r *http.Request, deps github.ToolDependencies
202202
}
203203

204204
// DefaultInventoryFactory creates the default inventory factory for HTTP mode
205-
func DefaultInventoryFactory(cfg *ServerConfig, t translations.TranslationHelperFunc, featureChecker inventory.FeatureFlagChecker, scopeFetcher scopes.FetcherInterface) InventoryFactoryFunc {
205+
func DefaultInventoryFactory(_ *ServerConfig, t translations.TranslationHelperFunc, featureChecker inventory.FeatureFlagChecker, scopeFetcher scopes.FetcherInterface) InventoryFactoryFunc {
206206
return func(r *http.Request) (*inventory.Inventory, error) {
207207
b := github.NewInventory(t).
208208
WithDeprecatedAliases(github.DeprecatedToolAliases).

pkg/scopes/fetcher_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@ import (
1212
"github.com/stretchr/testify/require"
1313
)
1414

15-
type testApiHostResolver struct {
15+
type testAPIHostResolver struct {
1616
baseURL string
1717
}
1818

19-
func (t testApiHostResolver) BaseRESTURL(_ context.Context) (*url.URL, error) {
19+
func (t testAPIHostResolver) BaseRESTURL(_ context.Context) (*url.URL, error) {
2020
return url.Parse(t.baseURL)
2121
}
22-
func (t testApiHostResolver) GraphqlURL(_ context.Context) (*url.URL, error) {
22+
func (t testAPIHostResolver) GraphqlURL(_ context.Context) (*url.URL, error) {
2323
return nil, nil
2424
}
25-
func (t testApiHostResolver) UploadURL(_ context.Context) (*url.URL, error) {
25+
func (t testAPIHostResolver) UploadURL(_ context.Context) (*url.URL, error) {
2626
return nil, nil
2727
}
28-
func (t testApiHostResolver) RawURL(_ context.Context) (*url.URL, error) {
28+
func (t testAPIHostResolver) RawURL(_ context.Context) (*url.URL, error) {
2929
return nil, nil
3030
}
3131

@@ -166,7 +166,7 @@ func TestFetcher_FetchTokenScopes(t *testing.T) {
166166
defer server.Close()
167167

168168
fetcher := NewFetcher(FetcherOptions{
169-
APIHost: testApiHostResolver{baseURL: server.URL},
169+
APIHost: testAPIHostResolver{baseURL: server.URL},
170170
})
171171

172172
scopes, err := fetcher.FetchTokenScopes(context.Background(), "test-token")
@@ -209,7 +209,7 @@ func TestFetcher_CustomHTTPClient(t *testing.T) {
209209

210210
func TestFetcher_CustomAPIHost(t *testing.T) {
211211
fetcher := NewFetcher(FetcherOptions{
212-
APIHost: testApiHostResolver{baseURL: "https://api.github.enterprise.com"},
212+
APIHost: testAPIHostResolver{baseURL: "https://api.github.enterprise.com"},
213213
})
214214

215215
apiURL, err := fetcher.apiHost.BaseRESTURL(context.Background())
@@ -225,7 +225,7 @@ func TestFetcher_ContextCancellation(t *testing.T) {
225225
defer server.Close()
226226

227227
fetcher := NewFetcher(FetcherOptions{
228-
APIHost: testApiHostResolver{baseURL: server.URL},
228+
APIHost: testAPIHostResolver{baseURL: server.URL},
229229
})
230230

231231
ctx, cancel := context.WithCancel(context.Background())

pkg/utils/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package utils
1+
package utils //nolint:revive //TODO: figure out a better name for this package
22

33
import (
44
"context"

pkg/utils/token.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package utils
1+
package utils //nolint:revive //TODO: figure out a better name for this package
22

33
import (
44
"fmt"

0 commit comments

Comments
 (0)