Skip to content

Commit fa7e0f4

Browse files
committed
Simplify PipelineRun by combining lambda function argument formatting.
1 parent abbdf70 commit fa7e0f4

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

modules/core/performance/include/performance.hpp

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,12 @@ class Perf {
3838
void PipelineRun(const PerfAttr& perf_attr) {
3939
perf_results_.type_of_running = PerfResults::TypeOfRunning::kPipeline;
4040

41-
CommonRun(
42-
perf_attr,
43-
[&]() {
44-
task_->Validation();
45-
task_->PreProcessing();
46-
task_->Run();
47-
task_->PostProcessing();
48-
},
49-
perf_results_);
41+
CommonRun(perf_attr, [&]() {
42+
task_->Validation();
43+
task_->PreProcessing();
44+
task_->Run();
45+
task_->PostProcessing();
46+
}, perf_results_);
5047
}
5148
// Check performance of task's Run() function
5249
void TaskRun(const PerfAttr& perf_attr) {

0 commit comments

Comments
 (0)