Skip to content

Commit

Permalink
fix logic and naming
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperCraeghs committed Dec 16, 2024
1 parent ad3cdc7 commit d1a3c3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mlx/warnings/warnings_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ def name_repr(self):
return self.name.replace("_sub", "").capitalize()

@property
def is_main_checker(self):
return not self.name.endswith("_sub")
def is_sub_checker(self):
return self.name.endswith("_sub")

@property
def cq_findings(self):
Expand Down Expand Up @@ -212,7 +212,7 @@ def _return_error_code(self):
if error_code == 0:
error_code = 1
string_to_print = f"number of warnings ({self.count}) is {error_reason}."
if not self.is_main_checker:
if not self.is_sub_checker:
string_to_print += f" Returning error code {error_code}."
self.logger.warning(string_to_print)
return error_code
Expand Down

0 comments on commit d1a3c3a

Please sign in to comment.