Skip to content

Commit 2fcfc10

Browse files
committed
Rename "hasAllStoreBackends" to "haveAllStoreBackends"
Who has all the store backends? I have all the store backends.
1 parent 1abcefa commit 2fcfc10

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

internal/store/store.go

+3-3
Original file line numberDiff line numberDiff 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 {

internal/store/store_all.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ import (
99
)
1010

1111
func init() {
12-
hasAllStoreBackends = true
12+
haveAllStoreBackends = true
1313
}

0 commit comments

Comments
 (0)