mrjackwills / havn

A fast configurable port scanner with reasonable defaults
MIT License
167 stars 5 forks source link

Small refactoring from if-let to let-else #4

Closed ThorstenHans closed 4 months ago

ThorstenHans commented 4 months ago

havn is awesome 👍🏻 Loving it!

With this PR I refactored the main fn a bit to use let-else instead of the if-let instructions to reduce code-indention

mrjackwills commented 4 months ago

Thanks, I've never been able to fully understand the need or use of the new-ish let...else syntax, but it makes sense to me me now