@@ -20,15 +20,15 @@ function doAction(type: CR.OutputAction, isArray, actionValue, result, line, ind
2020 valueList . forEach ( ( value ) => {
2121 value = trimQuotes ( value . trim ( ) , true ) ;
2222 result . chapters [ index . chapter ] . pages [ index . page ] . tasks [ index . task ] [ type ] . push ( value ) ;
23- } )
23+ } ) ;
2424 } else {
2525 result . chapters [ index . chapter ] . pages [ index . page ] . tasks [ index . task ] [ type ] . push ( actionValue ) ;
2626 }
2727 return result ;
2828}
2929
3030export function addToTasks ( result , line , index ) {
31- let action : CR . TaskAction | string = Match . isAction ( line ) ; //: 'action'|'test'|'hint'|'continue'
31+ let action : CR . TaskAction | string = Match . isAction ( line ) ; // 'action'|'test'|'hint'|'continue'
3232 let task : CR . Task = result . chapters [ index . chapter ] . pages [ index . page ] . tasks [ index . task ] ;
3333 let trimmedContent : string = line . slice ( action . length + 2 , line . length - 1 ) ; // content between brackets
3434 let actionValue : string = trimQuotes ( trimmedContent ) ;
@@ -41,7 +41,7 @@ export function addToTasks(result, line, index) {
4141 result = doAction ( 'hints' , isActionArray , actionValue , result , line , index ) ;
4242 break ;
4343 case 'continue' :
44- result = doAction ( 'continue' , isActionArray , actionValue , result , line , index ) ;
44+ break ;
4545 case 'action' :
4646 if ( task . actions === undefined ) {
4747 result . chapters [ index . chapter ] . pages [ index . page ] . tasks [ index . task ] . actions = [ ] ;
@@ -52,8 +52,7 @@ export function addToTasks(result, line, index) {
5252 value = trimCommandValue ( trimQuotes ( value . trim ( ) ) ) ;
5353 result . chapters [ index . chapter ] . pages [ index . page ] . tasks [ index . task ] . actions . push ( value ) ;
5454 } ) ;
55- }
56- else {
55+ } else {
5756 let value : string = trimCommandValue ( actionValue ) ;
5857 result . chapters [ index . chapter ] . pages [ index . page ] . tasks [ index . task ] . actions . push ( value ) ;
5958 }
0 commit comments