Skip to content

Commit 9e969c8

Browse files
committed
fix_for_rubocop
1 parent 3dec5fa commit 9e969c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/line/bot/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def get(endpoint_path)
376376
# @param endpoint_path [String]
377377
#
378378
# @return [Net::HTTPResponse]
379-
def post(endpoint_path, payload=nil)
379+
def post(endpoint_path, payload = nil)
380380
raise Line::Bot::API::InvalidCredentialsError, 'Invalidates credentials' unless credentials?
381381

382382
request = Request.new do |config|

spec/line/bot/rich_menu_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
uri_template = Addressable::Template.new Line::Bot::API::DEFAULT_ENDPOINT + '/bot/user/all/richmenu'
108108
stub_request(:delete, uri_template).to_return(body: '{}', status: 200)
109109

110-
client.unset_default_rich_menu()
110+
client.unset_default_rich_menu
111111
expect(WebMock).to have_requested(:delete, Line::Bot::API::DEFAULT_ENDPOINT + '/bot/user/all/richmenu')
112112
end
113113

0 commit comments

Comments
 (0)