Skip to content

Commit 64154b2

Browse files
committed
delete the deprecated code, modify the comments
1 parent d5181d8 commit 64154b2

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/stepper/stepper.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3370,8 +3370,7 @@ export function getEvaluationSteps(
33703370
'Start of evaluation'
33713371
]
33723372
/**
3373-
* push the content into frontend for showing contents in the
3374-
* this comment may not be correct, please correct it if you find any mismatch in description
3373+
* push the content into frontend for showing contents in the webpage
33753374
*/
33763375
steps.push([
33773376
reducedWithPath[0] as es.Program,
@@ -3422,13 +3421,6 @@ export function getEvaluationSteps(
34223421
])
34233422
}
34243423
}
3425-
/**
3426-
* Deprecated check for empty program
3427-
* It can be deleted or kept as a reference for legacy code.
3428-
*/
3429-
if (steps.length === 0) {
3430-
steps.push([reducedWithPath[0] as es.Program, [], 'Nothing to evaluate'])
3431-
}
34323424
return steps
34333425
} catch (error) {
34343426
if (error instanceof RuntimeSourceError) {

0 commit comments

Comments
 (0)