Skip to content

Commit a1960b0

Browse files
Md. Anisul Haquevil02
Md. Anisul Haque
andauthored
Update hashing/sha256.cpp
Co-authored-by: Piotr Idzik <[email protected]>
1 parent d8d6541 commit a1960b0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

hashing/sha256.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,7 @@ std::string hash_to_string(const std::array<uint32_t, 8> &hash) {
198198
* @return std::string The final hash value
199199
*/
200200
std::string sha256(const std::string &input) {
201-
std::array<uint32_t, 8> hash = compute_hash(input);
202-
203-
std::string result = hash_to_string(hash);
204-
205-
return result;
201+
return hash_to_string(compute_hash(input));
206202
}
207203
} // namespace sha256
208204
} // namespace hashing

0 commit comments

Comments
 (0)