@@ -110,7 +110,7 @@ function sortInterpretedResults(
110110function interpretedPageSize (
111111 interpretation : Interpretation | undefined ,
112112) : number {
113- if ( interpretation ?. data . t == "GraphInterpretationData" ) {
113+ if ( interpretation ?. data . t === "GraphInterpretationData" ) {
114114 // Graph views always have one result per page.
115115 return 1 ;
116116 }
@@ -124,7 +124,7 @@ function numPagesOfResultSet(
124124 const pageSize = interpretedPageSize ( interpretation ) ;
125125
126126 const n =
127- interpretation ?. data . t == "GraphInterpretationData"
127+ interpretation ?. data . t === "GraphInterpretationData"
128128 ? interpretation . data . dot . length
129129 : resultSet . schema . rows ;
130130
@@ -141,7 +141,7 @@ function numInterpretedPages(
141141 const pageSize = interpretedPageSize ( interpretation ) ;
142142
143143 const n =
144- interpretation . data . t == "GraphInterpretationData"
144+ interpretation . data . t === "GraphInterpretationData"
145145 ? interpretation . data . dot . length
146146 : interpretation . data . runs [ 0 ] . results ?. length || 0 ;
147147
@@ -446,7 +446,7 @@ export class ResultsView extends AbstractWebview<
446446
447447 const selectedTable = getDefaultResultSetName ( resultSetNames ) ;
448448 const schema = resultSetSchemas . find (
449- ( resultSet ) => resultSet . name == selectedTable ,
449+ ( resultSet ) => resultSet . name === selectedTable ,
450450 ) ! ;
451451
452452 // Use sorted results path if it exists. This may happen if we are
@@ -590,7 +590,7 @@ export class ResultsView extends AbstractWebview<
590590 const resultSetNames = allResultSetSchemas . map ( ( schema ) => schema . name ) ;
591591
592592 const schema = resultSetSchemas . find (
593- ( resultSet ) => resultSet . name == selectedTable ,
593+ ( resultSet ) => resultSet . name === selectedTable ,
594594 ) ! ;
595595 if ( schema === undefined )
596596 throw new Error ( `Query result set '${ selectedTable } ' not found.` ) ;
0 commit comments