Skip to content

Commit 8dab636

Browse files
committed
refactor tasks: remove redundant GetInput check in RunImpl for improved code clarity
1 parent 52402b6 commit 8dab636

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

tasks/example_processes/seq/src/ops_seq.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ bool NesterovATestTaskSEQ::PreProcessingImpl() {
2222
}
2323

2424
bool NesterovATestTaskSEQ::RunImpl() {
25-
if (GetInput() == 0) {
26-
return false;
27-
}
28-
2925
for (InType i = 0; i < GetInput(); i++) {
3026
for (InType j = 0; j < GetInput(); j++) {
3127
for (InType k = 0; k < GetInput(); k++) {

tasks/example_threads/seq/src/ops_seq.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ bool NesterovATestTaskSEQ::PreProcessingImpl() {
2222
}
2323

2424
bool NesterovATestTaskSEQ::RunImpl() {
25-
if (GetInput() == 0) {
26-
return false;
27-
}
28-
2925
for (InType i = 0; i < GetInput(); i++) {
3026
for (InType j = 0; j < GetInput(); j++) {
3127
for (InType k = 0; k < GetInput(); k++) {

0 commit comments

Comments
 (0)