lightningdevkit / ldk-sample

Sample node implementation using LDK
Apache License 2.0
166 stars 94 forks source link

Remove redundant `is_none()` check #68

Closed tnull closed 2 years ago

tnull commented 2 years ago

We don't need to check the same iterator twice. And, as at this point pubkey will always be Some(..), we don't need to check it either. We therefore can just remove the first part of the condition.