chore: enforce brackets for if clause and for/while loops
This commit is contained in:
@@ -136,7 +136,9 @@ const estimatedTotalSize = $derived.by(() => {
|
||||
|
||||
// Add estimated size for unloaded rows
|
||||
const unloadedRows = totalRows - rowCount;
|
||||
if (unloadedRows <= 0) return loadedSize;
|
||||
if (unloadedRows <= 0) {
|
||||
return loadedSize;
|
||||
}
|
||||
|
||||
// Estimate the size of unloaded rows
|
||||
const estimateFn = typeof itemHeight === 'function'
|
||||
|
||||
Reference in New Issue
Block a user