Skip to content

Commit e359fde

Browse files
authored
Merge pull request #5 from bundleup/copilot/fix-lint-job-failure
Fix RuboCop lint failures in examples and chat client
2 parents 3eb6e71 + e59fcaf commit e359fde

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

examples/unify_api.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010
abort 'BUNDLEUP_CONNECTION_ID is required for unify example' if connection_id.nil? || connection_id.empty?
1111

12-
chat = BundleUp::Unify::Chat.new(api_key, connection_id)
13-
git = BundleUp::Unify::Git.new(api_key, connection_id)
1412
ticketing = BundleUp::Unify::Ticketing.new(api_key, connection_id)
1513
client = BundleUp::Client.new(api_key)
1614
unify = client.unify(connection_id)

lib/bundleup/unify/chat.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ def message(channel_id, text)
3434

3535
response = connection.post("chat/channels/#{encoded_channel_id}/message", { text: text }.to_json)
3636

37-
unless response.success?
38-
raise "Failed to post chat/channels/#{encoded_channel_id}/message: #{response.status}"
39-
end
37+
raise "Failed to post chat/channels/#{encoded_channel_id}/message: #{response.status}" unless response.success?
4038

4139
response.body
4240
end

0 commit comments

Comments
 (0)