SatoshiPortal / boltz-rust

Boltz client rust crate
https://docs.boltz.exchange
30 stars 16 forks source link

Handle all errors gracefully. #12

Closed i5hi closed 5 months ago

i5hi commented 5 months ago

Update code that uses unwrap()

Note: Some unwraps are okay, if the values have been checked prior to unwrapping. This pattern is usually noticed with Option types where an if item.is_some() check is done.

All library functions should return S5Error as the Result's E type

Propogate errors with ? where possible, match otherwise.

i5hi commented 5 months ago

Update is_some() Option checks to use if let syntax