From 7d4604476802855c3b5ca74d54aff1d796b0b8e5 Mon Sep 17 00:00:00 2001 From: Daniel Sanchez Quiros Date: Thu, 28 Mar 2024 18:47:20 +0100 Subject: [PATCH] Fix comments --- rusty_results/prelude.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rusty_results/prelude.py b/rusty_results/prelude.py index 8437100..f8a33a4 100644 --- a/rusty_results/prelude.py +++ b/rusty_results/prelude.py @@ -527,7 +527,6 @@ def transpose(self) -> "Result[Option[T], E]": return Ok(self) def early_return(self) -> T: - # it is safe to unwrap here as we know we are some raise EarlyReturnException(self) def __bool__(self) -> bool: @@ -942,6 +941,7 @@ def transpose(self) -> Option["Result[T, E]"]: return cast(Option, self.unwrap()).map(Ok) def early_return(self) -> T: + # safe to unwrap here as we know it is Ok return self.unwrap() def __repr__(self):