Skip to content

Commit dde5f6e

Browse files
committed
Handle empty master options
1 parent 91ba198 commit dde5f6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/async/redis/sentinel_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class SentinelClient
2525
def initialize(endpoints, master_name: DEFAULT_MASTER_NAME, master_options: nil, role: :master, **options)
2626
@endpoints = endpoints
2727
@master_name = master_name
28-
@master_options = master_options
28+
@master_options = master_options || {}
2929
@role = role
3030

3131
@ssl = !!master_options&.key?(:ssl_context)

0 commit comments

Comments
 (0)