diff --git a/hashing/sha256.cpp b/hashing/sha256.cpp index 03ec158ea..10b48746d 100644 --- a/hashing/sha256.cpp +++ b/hashing/sha256.cpp @@ -198,11 +198,7 @@ std::string hash_to_string(const std::array &hash) { * @return std::string The final hash value */ std::string sha256(const std::string &input) { - std::array hash = compute_hash(input); - - std::string result = hash_to_string(hash); - - return result; + return hash_to_string(compute_hash(input)); } } // namespace sha256 } // namespace hashing