Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch committed May 9, 2024
1 parent e5b7edb commit 622d09c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/soroban-cli/src/fee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@ pub struct Args {

impl Args {
pub fn apply_to_assembled_txn(&self, txn: Assembled) -> Assembled {
let simulated_txn = if let Some(instructions) = self.instructions {
if let Some(instructions) = self.instructions {
txn.set_max_instructions(instructions)
} else {
add_padding_to_instructions(txn)
};
simulated_txn
}
}
}

Expand Down

0 comments on commit 622d09c

Please sign in to comment.