mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-23 06:35:07 +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. |
||
---|---|---|
.. | ||
conc_queue.go | ||
either.go | ||
events.go | ||
func.go | ||
go.mod | ||
go.sum | ||
option.go | ||
queue.go | ||
recv.go | ||
send.go | ||
set.go |