Skip to content

Commit b33616e

Browse files
committed
Remove unused interface implementation check
The unused `cryptokeys.Keycache` interface implementation check was removed from the `CryptoKeyCache` struct, as it was unnecessary and did not contribute to functionality. This streamlines the code and adheres to best practices for interface checks.
1 parent f6cc1cd commit b33616e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

enterprise/wsproxy/keycache.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ type Fetcher interface {
2525
Fetch(ctx context.Context) ([]codersdk.CryptoKey, error)
2626
}
2727

28-
var _ cryptokeys.Keycache = &CryptoKeyCache{}
29-
3028
type CryptoKeyCache struct {
3129
Clock quartz.Clock
3230
refreshCtx context.Context

enterprise/wsproxy/keycache_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ type fakeFetcher struct {
473473
called int
474474
}
475475

476-
func (f *fakeFetcher) Fetch(ctx context.Context) ([]codersdk.CryptoKey, error) {
476+
func (f *fakeFetcher) Fetch(_ context.Context) ([]codersdk.CryptoKey, error) {
477477
f.called++
478478
return f.keys, nil
479479
}

0 commit comments

Comments
 (0)