From cd0ce1ccdb07308b2666b13c21df3aebbee7bc8f Mon Sep 17 00:00:00 2001 From: Didactic Drunk <1479616+didactic-drunk@users.noreply.github.com> Date: Wed, 9 Jun 2021 09:05:55 -0700 Subject: [PATCH] Sodium::Nonce Remove redundant used check --- src/sodium/nonce.cr | 1 - 1 file changed, 1 deletion(-) diff --git a/src/sodium/nonce.cr b/src/sodium/nonce.cr index 11bb166..d6b7c0d 100644 --- a/src/sodium/nonce.cr +++ b/src/sodium/nonce.cr @@ -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