mirror of
https://github.com/logos-storage/questionable.git
synced 2026-01-04 06:43:10 +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.
|
## Converts a Result into an Option.
|
||||||
|
|
||||||
if value.isOk:
|
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
|
value.unsafeGet.some
|
||||||
except Exception as exception:
|
except Exception as exception:
|
||||||
raise newException(Defect, exception.msg, exception)
|
raise newException(Defect, exception.msg, exception)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user