Skip to content

Commit

Permalink
Fixed clippy warning (#1952)
Browse files Browse the repository at this point in the history
Merge pull request #1952

Fixed clippy warning

* pull/1952/head:
  Fixed clippy warning
  • Loading branch information
sdbondi committed Jun 4, 2020
2 parents f22ba34 + 34573f2 commit 2247e18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applications/tari_base_node/src/grpc/blocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub async fn block_heights(
from_tip: u64,
) -> Result<Vec<u64>, 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)
Expand Down

0 comments on commit 2247e18

Please sign in to comment.