From 34573f28a1ef15a6b3428213398c16dbbcd4cd98 Mon Sep 17 00:00:00 2001 From: Krakaw <41575888+Krakaw@users.noreply.github.com> Date: Thu, 4 Jun 2020 16:06:00 +0200 Subject: [PATCH] Fixed clippy warning --- applications/tari_base_node/src/grpc/blocks.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/tari_base_node/src/grpc/blocks.rs b/applications/tari_base_node/src/grpc/blocks.rs index 0b173d0f09..4d18d23c1e 100644 --- a/applications/tari_base_node/src/grpc/blocks.rs +++ b/applications/tari_base_node/src/grpc/blocks.rs @@ -44,7 +44,7 @@ pub async fn block_heights( from_tip: u64, ) -> Result, Status> { - let heights = if start_height >= 0 && end_height > 0 { + let heights = if end_height > 0 { Ok(BlockHeader::get_height_range(start_height, end_height)) } else if from_tip > 0 { BlockHeader::get_heights_from_tip(handler, from_tip)