goshippo/shippo-ruby-client

View on GitHub
lib/shippo/api/operations/rates.rb

Summary

Maintainability
A
0 mins
Test Coverage

Use the return of the conditional for variable assignment and comparison.
Open

          if !currency.nil?
            response = Shippo::API.get("#{url}/#{shipment_object_id}/rates/#{currency}/", params)
          else
            response = Shippo::API.get("#{url}/#{shipment_object_id}/rates/", params)
          end
Severity: Minor
Found in lib/shippo/api/operations/rates.rb by rubocop

There are no issues that match your filters.

Category
Status