File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,12 @@ import (
14
14
"github.com/ahamlinman/randomizer/internal/store/registry"
15
15
)
16
16
17
- // hasAllStoreBackends indicates whether we can safely use the bbolt fallback
17
+ // haveAllStoreBackends indicates whether we can safely use the bbolt fallback
18
18
// explained in the [FactoryFromEnv] comment. If we fall back to bbolt even
19
19
// though we don't know the full set of possible environment keys (because we
20
20
// used build tags to exclude some backends), we might activate it for a user
21
21
// who meant to configure one of those missing stores instead.
22
- var hasAllStoreBackends bool
22
+ var haveAllStoreBackends bool
23
23
24
24
// Factory represents a type for functions that produce a store for the
25
25
// randomizer to use for a given "partition" (e.g. Slack channel). Factories
@@ -52,7 +52,7 @@ func FactoryFromEnv(ctx context.Context) (Factory, error) {
52
52
}
53
53
54
54
var chosen string
55
- if len (candidates ) == 0 && hasAllStoreBackends {
55
+ if len (candidates ) == 0 && haveAllStoreBackends {
56
56
chosen = "bbolt"
57
57
}
58
58
if len (candidates ) == 1 {
Original file line number Diff line number Diff line change 9
9
)
10
10
11
11
func init () {
12
- hasAllStoreBackends = true
12
+ haveAllStoreBackends = true
13
13
}
You can’t perform that action at this time.
0 commit comments