Skip to content

Commit 6c24297

Browse files
committed
mxid: Remove Ruby 2.6 workaround
1 parent 9e4f22b commit 6c24297

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matrix_sdk/mxid.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def initialize(identifier)
1212

1313
# TODO: Community-as-a-Room / Profile-as-a-Room, in case they're going for room aliases
1414
@sigil = identifier[0]
15-
@localpart, @domain, @port = identifier[1..-1].split(':') # rubocop:disable Style/SlicingWithRange # Keep support for slightly older Rubies
15+
@localpart, @domain, @port = identifier[1..].split(':')
1616
@port = @port.to_i if @port
1717

1818
raise ArgumentError, 'Identifier is not a valid MXID' unless valid?

0 commit comments

Comments
 (0)