File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -371,7 +371,7 @@ export function utf_codepoint_to_int(utf_codepoint) {
371371}
372372
373373export function regex_check ( regex , string ) {
374- regex . lastIndex = 0 ;
374+ regex . lastIndex = 0 ;
375375 return regex . test ( string ) ;
376376}
377377
@@ -639,28 +639,28 @@ export function decode_tuple6(data) {
639639
640640function decode_tupleN ( data , n ) {
641641 if ( Array . isArray ( data ) && data . length == n ) {
642- return new Ok ( data )
642+ return new Ok ( data ) ;
643643 }
644644
645- let list = decode_exact_length_list ( data , n )
646- if ( list ) return new Ok ( list )
645+ let list = decode_exact_length_list ( data , n ) ;
646+ if ( list ) return new Ok ( list ) ;
647647
648648 return decoder_error ( `Tuple of ${ n } elements` , data ) ;
649649}
650650
651651function decode_exact_length_list ( data , n ) {
652652 if ( ! List . isList ( data ) ) return ;
653653
654- let elements = [ ]
655- let current = data
654+ let elements = [ ] ;
655+ let current = data ;
656656
657657 for ( let i = 0 ; i < n ; i ++ ) {
658658 if ( current . isEmpty ( ) ) break ;
659- elements . push ( current . head )
660- current = current . tail
659+ elements . push ( current . head ) ;
660+ current = current . tail ;
661661 }
662662
663- if ( elements . length === n && current . isEmpty ( ) ) return elements
663+ if ( elements . length === n && current . isEmpty ( ) ) return elements ;
664664}
665665
666666export function tuple_get ( data , index ) {
You can’t perform that action at this time.
0 commit comments