Skip to content

Commit 80f0979

Browse files
committed
fix: don't double raise
1 parent aa5e338 commit 80f0979

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
# CHANGELOG
22

3-
## Next Release (minor)
3+
## Next Release
44

55
- Adds Ruby 3.4 support
66
- Fixes error parsing
77
- Allows for alternative format of `errors` field
88
- Corrects available properties of an `EasyPostError` and `ApiError` (`code` and `field` removed from `EasyPostError`, `message` unfurled and explicitly added to `ApiError`)
99
- Removes unused `Error` model
1010
- Corrects the HTTP verb for updating a brand from `GET` to `PATCH`
11-
- Removes the deprecated `create_list` tracker endpoint function as it is no longer available via API
11+
- Removes deprecated `create_list` tracker endpoint function as it is no longer available via API
1212
- Removes deprecated `user.all_api_keys` and `user.api_keys`, use `api_key.all` and `api_key.retrieve_api_keys_for_user` respectively
13+
- Removes unmaintained and undocumented `irb`
14+
- Removes unused `Rakefile`
15+
- Bumps all dev dependencies
1316

1417
## v6.4.1 (2024-08-09)
1518

lib/easypost/services/report.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class EasyPost::Services::Report < EasyPost::Services::Service
66
# Create a Report
77
def create(params = {})
88
unless params[:type]
9-
raise raise EasyPost::Errors::MISSING_REQUIRED_PARAMETER.new('type')
9+
raise EasyPost::Errors::MISSING_REQUIRED_PARAMETER.new('type')
1010
end
1111

1212
type = params.delete(:type)
@@ -26,7 +26,7 @@ def retrieve(id)
2626
# Retrieve all Report objects
2727
def all(params = {})
2828
unless params[:type]
29-
raise raise EasyPost::Errors::MISSING_REQUIRED_PARAMETER.new('type')
29+
raise EasyPost::Errors::MISSING_REQUIRED_PARAMETER.new('type')
3030
end
3131

3232
type = params.delete(:type)

0 commit comments

Comments
 (0)