Skip to content

Commit 2e0034e

Browse files
authored
^
1 parent 4de23fa commit 2e0034e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/location/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@ def country_population(self):
2929
"""
3030
country_code = self.country_code
3131

32-
# Population data is unavailable for provinces
32+
# Population data is only available for countries.
3333
if not self.country_code:
3434
return None
35-
else:
36-
return countrypopulation.get_population_dict()[country_code]
35+
36+
# Return population.
37+
return countrypopulation.get_population_dict()[country_code]
3738

3839
@property
3940
def country_code(self):

0 commit comments

Comments
 (0)