Skip to content

Commit ddc5cad

Browse files
committed
chore: remove commented code
1 parent fd24158 commit ddc5cad

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

ResultContainer/__init__.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,17 +1330,8 @@ def str(self):
13301330
return f'Ok("{self._val}")'
13311331
return f"Ok({self._val})"
13321332
else:
1333-
# msg = " | ".join(f"{m}" if m != "" else "???" for m in self._val.msg)
1334-
# return f'Err("{" | ".join(f"{m}" for m in self._val.msg)}")'
13351333
return f'Err("{" | ".join(f"{m}" for m in self._val.msg if m != "")}")'
13361334

1337-
# def _empty_error(self):
1338-
# if self._success is None:
1339-
# raise ResultErr(
1340-
# "Result object is empty!\nIt must be associated with an Ok(value) or Err(e) to use any methods.",
1341-
# add_traceback=False,
1342-
# )
1343-
13441335
def _operator_overload_prep(self, b, operation: str):
13451336
# Checks and returns:
13461337
# a.err and b.err -> True and a&b error

0 commit comments

Comments
 (0)