mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-29 19:22:40 +01:00
In this commit, we add two new methods that simplify usage of an handling a value wrapped in an Option. Thes methods allow a caller to force the nil/None check up front, and either obtain the value, or fail the current execution or test. This should replace most usages of `UnsafeFromSome` where ever used today.