Skip to content

Commit

Permalink
Simplified nested logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
MicahGale committed Mar 3, 2025
1 parent cbec7c0 commit 4b1383a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions montepy/input_parser/syntax_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -1483,9 +1483,8 @@ def _reverse_engineer_format(self):
if match.group(0).isupper():
upper_match += 1
total_match += 1
if total_match:
if upper_match / total_match >= 0.5:
self._formatter["upper"] = True
if total_match and upper_match / total_match >= 0.5:
self._formatter["upper"] = True

@property
def comments(self):
Expand Down

0 comments on commit 4b1383a

Please sign in to comment.