File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,12 @@ import (
1414 "github.com/ahamlinman/randomizer/internal/store/registry"
1515)
1616
17- // hasAllStoreBackends indicates whether we can safely use the bbolt fallback
17+ // haveAllStoreBackends indicates whether we can safely use the bbolt fallback
1818// explained in the [FactoryFromEnv] comment. If we fall back to bbolt even
1919// though we don't know the full set of possible environment keys (because we
2020// used build tags to exclude some backends), we might activate it for a user
2121// who meant to configure one of those missing stores instead.
22- var hasAllStoreBackends bool
22+ var haveAllStoreBackends bool
2323
2424// Factory represents a type for functions that produce a store for the
2525// randomizer to use for a given "partition" (e.g. Slack channel). Factories
@@ -52,7 +52,7 @@ func FactoryFromEnv(ctx context.Context) (Factory, error) {
5252 }
5353
5454 var chosen string
55- if len (candidates ) == 0 && hasAllStoreBackends {
55+ if len (candidates ) == 0 && haveAllStoreBackends {
5656 chosen = "bbolt"
5757 }
5858 if len (candidates ) == 1 {
Original file line number Diff line number Diff line change 99)
1010
1111func init () {
12- hasAllStoreBackends = true
12+ haveAllStoreBackends = true
1313}
You can’t perform that action at this time.
0 commit comments