Sodium::Nonce Remove redundant used check

This commit is contained in:
Didactic Drunk 2021-06-09 09:05:55 -07:00
parent c75a51c078
commit cd0ce1ccdb

View File

@ -53,7 +53,6 @@ module Sodium
end
def reusable=(val : Bool) : Bool
raise Error.new("trying to set reusable=true but already used") if val && @used
@reusable = val
@used = false if val
val