diff options
author | andrea longhi <andrea@spaghetticode.it> | 2020-01-22 10:25:58 +0100 |
---|---|---|
committer | andrea longhi <andrea@spaghetticode.it> | 2020-01-22 10:32:06 +0100 |
commit | ac30ff69f619bc504cd295de2f983310077b30e0 (patch) | |
tree | 3edcb7b3fedbdc699b2d68079ecbb7e506dc8f66 /lib/super_good | |
parent | c28df097c661387e3e37d06eb56380fb59f58754 (diff) |
Remove unnecessay safe navigator
The safe navigator is not necessary here, as all other method
calls on `address` don't have it.
Diffstat (limited to 'lib/super_good')
-rw-r--r-- | lib/super_good/solidus_taxjar/calculator_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/super_good/solidus_taxjar/calculator_helper.rb b/lib/super_good/solidus_taxjar/calculator_helper.rb index 636f322..dbde950 100644 --- a/lib/super_good/solidus_taxjar/calculator_helper.rb +++ b/lib/super_good/solidus_taxjar/calculator_helper.rb @@ -15,7 +15,7 @@ module SuperGood [ address.address1, address.city, - address&.state&.abbr || address.state_name, + address.state&.abbr || address.state_name, address.zipcode, address.country&.iso ].any?(&:blank?) |