Skip to content

Commit

Permalink
Refactor: Use direct reference to constants instead of self
Browse files Browse the repository at this point in the history
- Constants declared outside the class should be directly accessed without using `self`.
  • Loading branch information
Minku-Koo committed Nov 27, 2024
1 parent 32ce6fa commit eee1ebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pendulum/formatting/difference_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def format(
elif diff.minutes > 0:
unit = "minute"
count = diff.minutes
elif self.FEW_SECONDS_MAX < diff.remaining_seconds < SECONDS_OF_MINUTE:
elif FEW_SECONDS_MAX < diff.remaining_seconds < SECONDS_OF_MINUTE:
unit = "second"
count = diff.remaining_seconds
else:
Expand Down

0 comments on commit eee1ebc

Please sign in to comment.