louib / challenge-response

Perform HMAC-SHA1 and OTP challenges with YubiKey, OnlyKey and NitroKey, in pure Rust.
Other
4 stars 1 forks source link

refactor: use early return when opening device #47

Closed louib closed 2 months ago

louib commented 3 months ago

This commit cleans up the error handling when opening a device, thus reducing the indentation level of functions that have to open a device.