Skip to content

Commit abd5197

Browse files
authored
Merge pull request #95 from patterninc/hotfix/add_header_to_app_mgmt_api
Rubocop fix
2 parents ee84ff9 + e1d49a1 commit abd5197

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/muffin_man/application_management/v20231130.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ def self.rotate_application_client_secret(client_id, client_secret)
99
Typhoeus.post(
1010
"https://sellingpartnerapi-na.amazon.com/applications/2023-11-30/clientSecret",
1111
headers: {
12-
"x-amz-access-token" => access_token,
13-
"Content-Type" => "application/json;charset=UTF-8"
14-
}
12+
"x-amz-access-token" => access_token,
13+
"Content-Type" => "application/json;charset=UTF-8"
14+
}
1515
)
1616
end
1717
end

spec/muffin_man/application_management/v20231130_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
it "returns the response and makes the correct API call" do
2727
expect(Typhoeus).to receive(:post).with(
2828
new_app_credential_url,
29-
headers:{
30-
"x-amz-access-token" => access_token,
31-
"Content-Type" => "application/json;charset=UTF-8"
32-
}
29+
headers: {
30+
"x-amz-access-token" => access_token,
31+
"Content-Type" => "application/json;charset=UTF-8"
32+
}
3333
)
3434

3535
result = described_class.rotate_application_client_secret(client_id, client_secret)

0 commit comments

Comments
 (0)