mirror of
https://github.com/logos-storage/questionable.git
synced 2026-01-02 13:53:11 +00:00
Fix typo
This commit is contained in:
parent
4967084d22
commit
56a4bca641
@ -101,7 +101,7 @@ proc option*[T,E](value: Result[T,E]): ?T =
|
||||
## Converts a Result into an Option.
|
||||
|
||||
if value.isOk:
|
||||
try: # workaround for erroneouos exception tracking when T is a closure
|
||||
try: # workaround for erroneous exception tracking when T is a closure
|
||||
value.unsafeGet.some
|
||||
except Exception as exception:
|
||||
raise newException(Defect, exception.msg, exception)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user