Skip to content

Commit d7e204d

Browse files
jlledomioquatix
authored andcommitted
Handle empty master options
1 parent 67bace2 commit d7e204d

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
@@ -26,7 +26,7 @@ class SentinelClient
2626
def initialize(endpoints, master_name: DEFAULT_MASTER_NAME, master_options: nil, role: :master, **options)
2727
@endpoints = endpoints
2828
@master_name = master_name
29-
@master_options = master_options
29+
@master_options = master_options || {}
3030
@role = role
3131

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

0 commit comments

Comments
 (0)