From 7d182a469e850eae0ccced1cf8370a93a0153dda Mon Sep 17 00:00:00 2001 From: Kim Shrier Date: Wed, 12 Jun 2024 01:29:13 -0600 Subject: [PATCH] crypto.sha3: remove unnecessary return at the end of the write function (#21669) --- vlib/crypto/sha3/sha3.v | 2 -- 1 file changed, 2 deletions(-) diff --git a/vlib/crypto/sha3/sha3.v b/vlib/crypto/sha3/sha3.v index 74c58bdefa..7fd50a97ad 100644 --- a/vlib/crypto/sha3/sha3.v +++ b/vlib/crypto/sha3/sha3.v @@ -256,8 +256,6 @@ pub fn (mut d Digest) write(data []u8) ! { if bytes_remaining.len > 0 { d.input_buffer = bytes_remaining } - - return } // checksum finalizes the hash and returns the generated bytes.