Skip to content

Commit

Permalink
Fix missing return in en_US state_abbr
Browse files Browse the repository at this point in the history
Close #1742

Co-authored-by: adimitrov <a.dimitrov@ibs.bg>
  • Loading branch information
AssenD and adimitrov authored Nov 1, 2022
1 parent 919a26e commit bb8b78a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion faker/providers/address/en_US/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ def state_abbr(self, include_territories: bool = True) -> str:
If False, only states will be returned.
"""
if include_territories:
self.random_element(self.states_and_territories_abbr)
return self.random_element(self.states_and_territories_abbr)
return self.random_element(self.states_abbr)

def postcode(self) -> str:
Expand Down

0 comments on commit bb8b78a

Please sign in to comment.