@@ -539,12 +539,12 @@ export type DiffLine = {
539539export function encodeDiffLineRange ( lineSelection : DiffLine [ ] ) : DiffLineRange | undefined {
540540 if ( lineSelection . length === 0 ) return undefined ;
541541 if ( lineSelection . length === 1 )
542- return encodeSingleDiffLine ( lineSelection [ 0 ] ! . oldLine , lineSelection [ 0 ] ! . newLine ) ;
542+ return encodeSingleDiffLine ( lineSelection [ 0 ] . oldLine , lineSelection [ 0 ] . newLine ) ;
543543
544- const firstLine = encodeSingleDiffLine ( lineSelection [ 0 ] ! . oldLine , lineSelection [ 0 ] ! . newLine ) ;
544+ const firstLine = encodeSingleDiffLine ( lineSelection [ 0 ] . oldLine , lineSelection [ 0 ] . newLine ) ;
545545 const lastLine = encodeSingleDiffLine (
546- lineSelection [ lineSelection . length - 1 ] ! . oldLine ,
547- lineSelection [ lineSelection . length - 1 ] ! . newLine
546+ lineSelection [ lineSelection . length - 1 ] . oldLine ,
547+ lineSelection [ lineSelection . length - 1 ] . newLine
548548 ) ;
549549
550550 if ( firstLine === undefined || lastLine === undefined ) {
@@ -718,8 +718,8 @@ function computeBaseWordDiff(
718718 // Loop through every line in the section
719719 // We're only bothered with prev/next sections with equal # of lines changes
720720 for ( let i = 0 ; i < numberOfLines ; i ++ ) {
721- const oldLine = prevSection . lines [ i ] as Line ;
722- const newLine = nextSection . lines [ i ] as Line ;
721+ const oldLine = prevSection . lines [ i ] ;
722+ const newLine = nextSection . lines [ i ] ;
723723 const prevSectionRow : BaseRow = {
724724 encodedLineId : encodeDiffFileLine (
725725 filename ,
@@ -787,8 +787,8 @@ function computeBaseInlineWordDiff(
787787 // Loop through every line in the section
788788 // We're only bothered with prev/next sections with equal # of lines changes
789789 for ( let i = 0 ; i < numberOfLines ; i ++ ) {
790- const oldLine = prevSection . lines [ i ] as Line ;
791- const newLine = nextSection . lines [ i ] as Line ;
790+ const oldLine = prevSection . lines [ i ] ;
791+ const newLine = nextSection . lines [ i ] ;
792792
793793 const sectionRow : BaseRow = {
794794 encodedLineId : encodeDiffFileLine (
0 commit comments