We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c41a643 commit 7ca44b4Copy full SHA for 7ca44b4
lib/mqtt/packet.rb
@@ -445,7 +445,7 @@ class Connect < MQTT::Packet
445
def initialize(args = {})
446
super(ATTR_DEFAULTS.merge(args))
447
448
- if version == '3.1.0' || version == '3.1'
+ if ['3.1.0', '3.1'].include?(version)
449
self.protocol_name ||= 'MQIsdp'
450
self.protocol_level ||= 0x03
451
elsif version == '3.1.1'
0 commit comments