Skip to content

Commit 7ca44b4

Browse files
committed
Rubocop fix
1 parent c41a643 commit 7ca44b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mqtt/packet.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ class Connect < MQTT::Packet
445445
def initialize(args = {})
446446
super(ATTR_DEFAULTS.merge(args))
447447

448-
if version == '3.1.0' || version == '3.1'
448+
if ['3.1.0', '3.1'].include?(version)
449449
self.protocol_name ||= 'MQIsdp'
450450
self.protocol_level ||= 0x03
451451
elsif version == '3.1.1'

0 commit comments

Comments
 (0)