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) {
371
371
}
372
372
373
373
export function regex_check ( regex , string ) {
374
- regex . lastIndex = 0 ;
374
+ regex . lastIndex = 0 ;
375
375
return regex . test ( string ) ;
376
376
}
377
377
@@ -639,28 +639,28 @@ export function decode_tuple6(data) {
639
639
640
640
function decode_tupleN ( data , n ) {
641
641
if ( Array . isArray ( data ) && data . length == n ) {
642
- return new Ok ( data )
642
+ return new Ok ( data ) ;
643
643
}
644
644
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 ) ;
647
647
648
648
return decoder_error ( `Tuple of ${ n } elements` , data ) ;
649
649
}
650
650
651
651
function decode_exact_length_list ( data , n ) {
652
652
if ( ! List . isList ( data ) ) return ;
653
653
654
- let elements = [ ]
655
- let current = data
654
+ let elements = [ ] ;
655
+ let current = data ;
656
656
657
657
for ( let i = 0 ; i < n ; i ++ ) {
658
658
if ( current . isEmpty ( ) ) break ;
659
- elements . push ( current . head )
660
- current = current . tail
659
+ elements . push ( current . head ) ;
660
+ current = current . tail ;
661
661
}
662
662
663
- if ( elements . length === n && current . isEmpty ( ) ) return elements
663
+ if ( elements . length === n && current . isEmpty ( ) ) return elements ;
664
664
}
665
665
666
666
export function tuple_get ( data , index ) {
You can’t perform that action at this time.
0 commit comments