Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
Satisfy the RuboCop 👮
Browse files Browse the repository at this point in the history
- Style/SuperArguments: Call super without arguments and parentheses
  when the signature is identical.
- Layout/EmptyLinesAroundBlockBody: Extra empty line detected at block
  body end. (https://rubystyle.guide#empty-lines-around-bodies)
  • Loading branch information
sgerrand committed Sep 13, 2024
1 parent f0d3aed commit 9ca56c8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion lib/duffel_api/resources/city.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def initialize(object, response = nil)
@id = object["id"]
@name = object["name"]

super(object, response)
super
end
end
end
Expand Down
1 change: 0 additions & 1 deletion spec/duffel_api/services/cities_service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@
expect(get_response.iata_country_code).to eq("GB")
expect(get_response.id).to eq("cit_lon_gb")
expect(get_response.name).to eq("London")

end

it "exposes the API response" do
Expand Down

0 comments on commit 9ca56c8

Please sign in to comment.