Sodium::Nonce Remove redundant used check
This commit is contained in:
parent
c75a51c078
commit
cd0ce1ccdb
@ -53,7 +53,6 @@ module Sodium
|
|||||||
end
|
end
|
||||||
|
|
||||||
def reusable=(val : Bool) : Bool
|
def reusable=(val : Bool) : Bool
|
||||||
raise Error.new("trying to set reusable=true but already used") if val && @used
|
|
||||||
@reusable = val
|
@reusable = val
|
||||||
@used = false if val
|
@used = false if val
|
||||||
val
|
val
|
||||||
|
Loading…
Reference in New Issue
Block a user