Skip to content

Commit 1abcefa

Browse files
committed
Use a proper set for candidates
1 parent 1d7b1fe commit 1abcefa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/store/store.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ func FactoryFromEnv(ctx context.Context) (Factory, error) {
4444
return nil, errors.New("no store backends available in this build")
4545
}
4646

47-
candidates := make(map[string]registry.Entry)
47+
candidates := make(map[string]struct{})
4848
for name, entry := range registry.Registry {
4949
if envHasAny(entry.EnvironmentKeys...) {
50-
candidates[name] = entry
50+
candidates[name] = struct{}{}
5151
}
5252
}
5353

0 commit comments

Comments
 (0)