chore(hashing/merkle_root): remove semi colon on returns

Signed-off-by: Johns Beharry <johns@peakshift.com>
This commit is contained in:
Johns Beharry 2019-03-21 11:10:15 +01:00
parent 725401d2e1
commit 06362d32d3
No known key found for this signature in database
GPG Key ID: EC114974742E2178

View File

@ -15,7 +15,7 @@ pub fn merkle_root(values: &[Vec<u8>]) -> Option<Vec<u8>> {
// check size of vector > 0 and ^ 2 // check size of vector > 0 and ^ 2
if values.is_empty() || !values_len.is_power_of_two() { if values.is_empty() || !values_len.is_power_of_two() {
return None return None;
} }
// vector to store hashes // vector to store hashes
@ -35,7 +35,7 @@ pub fn merkle_root(values: &[Vec<u8>]) -> Option<Vec<u8>> {
} }
// the root hash will be at index 1 // the root hash will be at index 1
return Some(o[1].clone()) return Some(o[1].clone());
} }
#[cfg(test)] #[cfg(test)]