Skip to content

Commit

Permalink
fix frozen strings
Browse files Browse the repository at this point in the history
  • Loading branch information
mikz committed Aug 9, 2017
1 parent fe807c4 commit be49916
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/message_bus_client/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ def headers

# Gets the URI to poll the server with
def server_endpoint
endpoint = "#{@base_url}/message-bus/#{@client_id}/poll"
endpoint = +"#{@base_url}/message-bus/#{@client_id}/poll"
endpoint << '?dlp=t' unless self.class.long_polling

endpoint
endpoint.freeze
end

# Handles the response from the connection.
Expand Down
2 changes: 1 addition & 1 deletion lib/message_bus_client/message_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def initialize(base_url)
@subscribed_channels.default_proc = proc do |hash, key|
hash[key] = SubscribedChannel.new
end
@payload = ''
@payload = +''
end

def subscribe(channel, &callback)
Expand Down

0 comments on commit be49916

Please sign in to comment.