Skip to content

Commit 11bb482

Browse files
committed
ran formatter/linter
1 parent cdc1226 commit 11bb482

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

lib/nylas/handler/http_client.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ def execute(method:, path:, timeout:, headers: {}, query: {}, payload: nil, api_
4141
content_type = response.headers["content-type"].downcase
4242
end
4343

44-
parsed_response = parse_json_evaluate_error(result.code.to_i, response.body, path, content_type, response.headers)
44+
parsed_response = parse_json_evaluate_error(result.code.to_i, response.body, path, content_type,
45+
response.headers)
4546
# Include headers in the response
4647
parsed_response[:headers] = response.headers unless parsed_response.nil?
4748
parsed_response

spec/nylas/handler/http_client_spec.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ class TestHttpClient
321321
it "returns an error with headers" do
322322
response_json = {
323323
foo: "bar",
324-
error: {
324+
error: {
325325
type: "api_error",
326326
message: "An unexpected error occurred",
327327
provider_error: "This is the provider error"
@@ -499,7 +499,8 @@ class TestHttpClient
499499
"x-ratelimit-remaining": "99"
500500
}
501501

502-
err_obj = http_client.send(:error_hash_to_exception, response, 400, "https://test.api.nylas.com/foo", headers)
502+
err_obj = http_client.send(:error_hash_to_exception, response, 400, "https://test.api.nylas.com/foo",
503+
headers)
503504

504505
expect(err_obj).to be_a(Nylas::NylasApiError)
505506
expect(err_obj.message).to eq("An unexpected error occurred")
@@ -586,7 +587,7 @@ class TestHttpClient
586587
}
587588
headers = {
588589
"x-request-id": "request-id-from-headers",
589-
"x-ratelimit-limit": "100",
590+
"x-ratelimit-limit": "100"
590591
}
591592

592593
expect do

0 commit comments

Comments
 (0)