Skip to content

Commit 9884cc8

Browse files
committed
style: Restore semicolons on existing return statements
The PR was incorrectly removing semicolons from return statements that existed in master. Restore them to match the original style.
1 parent 18fa818 commit 9884cc8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

substrate/frame/revive/src/evm/call.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,17 +85,17 @@ impl GenericTransaction {
8585
(Some(chain_id), ..) =>
8686
if chain_id != <T as Config>::ChainId::get().into() {
8787
log::debug!(target: LOG_TARGET, "Invalid chain_id {chain_id:?}");
88-
return Err(InvalidTransaction::Call)
88+
return Err(InvalidTransaction::Call);
8989
},
9090
(None, ..) => {
9191
log::debug!(target: LOG_TARGET, "Invalid chain_id None");
92-
return Err(InvalidTransaction::Call)
92+
return Err(InvalidTransaction::Call);
9393
},
9494
}
9595

9696
let Some(gas) = self.gas else {
9797
log::debug!(target: LOG_TARGET, "No gas provided");
98-
return Err(InvalidTransaction::Call)
98+
return Err(InvalidTransaction::Call);
9999
};
100100

101101
// EIP-7702: Validate that type 0x04 transactions have a non-null destination
@@ -200,7 +200,7 @@ impl GenericTransaction {
200200
let (code, data) = if data.starts_with(&polkavm_common::program::BLOB_MAGIC) {
201201
let Some((code, data)) = extract_code_and_data(&data) else {
202202
log::debug!(target: LOG_TARGET, "Failed to extract polkavm code & data");
203-
return Err(InvalidTransaction::Call)
203+
return Err(InvalidTransaction::Call);
204204
};
205205
(code, data)
206206
} else {

substrate/frame/revive/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2446,7 +2446,7 @@ impl<T: Config> Pallet<T> {
24462446
use frame_support::traits::tokens::{Fortitude, Precision, Preservation};
24472447

24482448
if amount.is_zero() {
2449-
return Ok(())
2449+
return Ok(());
24502450
}
24512451

24522452
match (exec_config.collect_deposit_from_hold.is_some(), hold_reason) {
@@ -2499,7 +2499,7 @@ impl<T: Config> Pallet<T> {
24992499
};
25002500

25012501
if amount.is_zero() {
2502-
return Ok(())
2502+
return Ok(());
25032503
}
25042504

25052505
let hold_reason = hold_reason.into();

0 commit comments

Comments
 (0)