Sodium::Nonce Remove redundant used check
This commit is contained in:
parent
c75a51c078
commit
cd0ce1ccdb
1 changed files with 0 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue