Skip to content

Commit 0cf43e6

Browse files
author
Eugene
authored
Fix StreamChannelException raises. (#52)
Fixes #40
1 parent b2fc3a8 commit 0cf43e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/stream-chat/channel.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def initialize(client, channel_type, channel_id = nil, custom_data = nil)
1919
end
2020

2121
def url
22-
raise StreamChannelException 'channel does not have an id' if @id.nil?
22+
raise StreamChannelException, 'channel does not have an id' if @id.nil?
2323

2424
"channels/#{@channel_type}/#{@id}"
2525
end
@@ -85,7 +85,7 @@ def update(channel_data, update_message = nil)
8585
end
8686

8787
def update_partial(set = nil, unset = nil)
88-
raise StreamChannelException 'set or unset is needed' if set.nil? && unset.nil?
88+
raise StreamChannelException, 'set or unset is needed' if set.nil? && unset.nil?
8989

9090
payload = { set: set, unset: unset }
9191
@client.patch(url, data: payload)

0 commit comments

Comments
 (0)