Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
remove the bad error check
  • Loading branch information
shawntabrizi committed Oct 4, 2021
commit 92d55dce575345e73c7d02161a41eff7067da2f9
1 change: 0 additions & 1 deletion bin/node-template/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,6 @@ impl_runtime_apis! {
add_benchmark!(params, batches, pallet_timestamp, Timestamp);
add_benchmark!(params, batches, pallet_template, TemplateModule);

if batches.is_empty() { return Err("Benchmark not found for this pallet.".into()) }
Ok(batches)
}
}
Expand Down
1 change: 0 additions & 1 deletion bin/node/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1726,7 +1726,6 @@ impl_runtime_apis! {
add_benchmark!(params, batches, pallet_utility, Utility);
add_benchmark!(params, batches, pallet_vesting, Vesting);

if batches.is_empty() { return Err("Benchmark not found for this pallet.".into()) }
Ok(batches)
}
}
Expand Down
6 changes: 0 additions & 6 deletions frame/balances/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,6 @@ benchmarks_instance_pallet! {
assert_eq!(Balances::<T, I>::free_balance(&user), balance);
}

skip_benchmark {
Err(frame_benchmarking::BenchmarkError::Skip)?;
}: {
Err(frame_benchmarking::BenchmarkError::Skip)?
}

impl_benchmark_test_suite!(
Balances,
crate::tests_composite::ExtBuilder::default().build(),
Expand Down