Skip to content

Commit c7d8b64

Browse files
committed
fix: detection of invalid configuration type
1 parent b6241f1 commit c7d8b64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dynamodb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ type Config struct {
6868

6969
func newStore(ctx context.Context, endpoints []string, options valkeyrie.Config) (store.Store, error) {
7070
cfg, ok := options.(*Config)
71-
if !ok && cfg != nil {
71+
if !ok && options != nil {
7272
return nil, &store.InvalidConfigurationError{Store: StoreName, Config: options}
7373
}
7474

0 commit comments

Comments
 (0)