Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Braiden Vasco committed Sep 9, 2015
1 parent e91c9e9 commit 41ca31a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/lita/adapters/gitter/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def run
# @param target [Lita::Source] The user or room to send message to.
# @param text [String] Messages to send.
#
def send_message(_target, text) # rubocop:disable AbcSize, MethodLength
def send_message(_target, text)
url = "https://api.gitter.im/v1/rooms/#{config.room_id}/chatMessages"
uri = URI.parse(url)

Expand Down Expand Up @@ -94,8 +94,8 @@ def parse(body)

get_message(text, from_id, room_id)

rescue MultiJson::ParseError => e
log.error "Failed to decode: #{body.inspect} - #{e}"
rescue MultiJson::ParseError => e
log.error "Failed to decode: #{body.inspect} - #{e}"
end

# Handle new message
Expand Down

0 comments on commit 41ca31a

Please sign in to comment.