From c7eeb5bbca895c52770a739477fd09229174b604 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Wed, 23 Oct 2024 12:53:12 +0000 Subject: [PATCH] ci: apply automated fixes --- .../src/core/columns/Columns.utils.ts | 1 - .../table-core/src/core/rows/Rows.utils.ts | 19 ++++--------------- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/packages/table-core/src/core/columns/Columns.utils.ts b/packages/table-core/src/core/columns/Columns.utils.ts index 9f3e06b986..6caaed54f3 100644 --- a/packages/table-core/src/core/columns/Columns.utils.ts +++ b/packages/table-core/src/core/columns/Columns.utils.ts @@ -143,4 +143,3 @@ export function table_getColumn< return column } - diff --git a/packages/table-core/src/core/rows/Rows.utils.ts b/packages/table-core/src/core/rows/Rows.utils.ts index d21ec5e245..f14100bc76 100644 --- a/packages/table-core/src/core/rows/Rows.utils.ts +++ b/packages/table-core/src/core/rows/Rows.utils.ts @@ -9,10 +9,7 @@ import type { Cell } from '../../types/Cell' export function row_getValue< TFeatures extends TableFeatures, TData extends RowData, ->( - row: Row, - columnId: string, -) { +>(row: Row, columnId: string) { if (row._valuesCache.hasOwnProperty(columnId)) { return row._valuesCache[columnId] } @@ -31,10 +28,7 @@ export function row_getValue< export function row_getUniqueValues< TFeatures extends TableFeatures, TData extends RowData, ->( - row: Row, - columnId: string, -) { +>(row: Row, columnId: string) { if (row._uniqueValuesCache.hasOwnProperty(columnId)) { return row._uniqueValuesCache[columnId] } @@ -61,10 +55,7 @@ export function row_getUniqueValues< export function row_renderValue< TFeatures extends TableFeatures, TData extends RowData, ->( - row: Row, - columnId: string, -) { +>(row: Row, columnId: string) { return row.getValue(columnId) ?? row.table.options.renderFallbackValue } @@ -101,9 +92,7 @@ export function row_getParentRows< export function row_getAllCells< TFeatures extends TableFeatures, TData extends RowData, ->( - row: Row, -): Array> { +>(row: Row): Array> { return row.table.getAllLeafColumns().map((column) => { return constructCell(column, row, row.table) })