Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 1c2e9a8

Browse files
authored
Remove incorrect sanity check (#9924)
* causes issue * remove the bad error check
1 parent 1d356ce commit 1c2e9a8

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

bin/node-template/runtime/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,6 @@ impl_runtime_apis! {
508508
add_benchmark!(params, batches, pallet_timestamp, Timestamp);
509509
add_benchmark!(params, batches, pallet_template, TemplateModule);
510510

511-
if batches.is_empty() { return Err("Benchmark not found for this pallet.".into()) }
512511
Ok(batches)
513512
}
514513
}

bin/node/runtime/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1728,7 +1728,6 @@ impl_runtime_apis! {
17281728
add_benchmark!(params, batches, pallet_utility, Utility);
17291729
add_benchmark!(params, batches, pallet_vesting, Vesting);
17301730

1731-
if batches.is_empty() { return Err("Benchmark not found for this pallet.".into()) }
17321731
Ok(batches)
17331732
}
17341733
}

0 commit comments

Comments
 (0)