Skip to content

Commit

Permalink
Remove unnecessary lazy evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
c12i committed Nov 20, 2023
1 parent 24952c1 commit b6e2c84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/b2b.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ impl<'mpesa, Env: ApiEnvironment> B2bBuilder<'mpesa, Env> {
security_credential: &credentials,
command_id: self
.command_id
.unwrap_or_else(|| CommandId::BusinessToBusinessTransfer),
.unwrap_or(CommandId::BusinessToBusinessTransfer),
amount: self
.amount
.ok_or(MpesaError::Message("amount is required"))?,
Expand Down

0 comments on commit b6e2c84

Please sign in to comment.