Sodium::Nonce Remove redundant used check

master
Didactic Drunk 2021-06-09 09:05:55 -07:00
parent c75a51c078
commit cd0ce1ccdb
1 changed files with 0 additions and 1 deletions

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