Skip to content

Commit

Permalink
Remove unnecessary else branch
Browse files Browse the repository at this point in the history
Also added a question as TODO
  • Loading branch information
Splines committed Mar 15, 2024
1 parent a584206 commit 9a0299d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/domain/value.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def get_sig_figs(self) -> int:
return self._max_exponent - self._min_exponent + 1

def get_decimal_place(self) -> int:
# TODO: it can never be None, right? So then we don't need this:
if self._min_exponent is None:
raise RuntimeError("An unexpected error occurred. Please report this bug.")
else:
return -self._min_exponent
return -self._min_exponent

0 comments on commit 9a0299d

Please sign in to comment.