Skip to content

Commit 2e2ecec

Browse files
fix: remove unnecessary type assertions in DatabasePlugin (lint)
1 parent cb51064 commit 2e2ecec

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/interpreter/plugin/DatabasePlugin.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ export class DatabasePlugin extends FunctionPlugin implements FunctionPluginType
232232
if (this.rowMatchesCriteria(dbData[rowIdx], criteriaRows)) {
233233
const cellValue = dbData[rowIdx][fieldIndex]
234234
if (isExtendedNumber(cellValue)) {
235-
product *= getRawValue(cellValue) as number
235+
product *= getRawValue(cellValue)
236236
hasNumeric = true
237237
}
238238
}
@@ -268,7 +268,7 @@ export class DatabasePlugin extends FunctionPlugin implements FunctionPluginType
268268
if (this.rowMatchesCriteria(dbData[rowIdx], criteriaRows)) {
269269
const cellValue = dbData[rowIdx][fieldIndex]
270270
if (isExtendedNumber(cellValue)) {
271-
sum += getRawValue(cellValue) as number
271+
sum += getRawValue(cellValue)
272272
}
273273
}
274274
}
@@ -592,7 +592,7 @@ export class DatabasePlugin extends FunctionPlugin implements FunctionPluginType
592592
if (this.rowMatchesCriteria(dbData[rowIdx], criteriaRows)) {
593593
const cellValue = dbData[rowIdx][fieldIndex]
594594
if (isExtendedNumber(cellValue)) {
595-
values.push(getRawValue(cellValue) as number)
595+
values.push(getRawValue(cellValue) )
596596
}
597597
}
598598
}

0 commit comments

Comments
 (0)