chore: Enable eslint to enforce curly (#3060)
This commit is contained in:
@@ -30,7 +30,9 @@ function naturalSortBy<T>(
|
||||
key: string | ((item: T) => string),
|
||||
sortOptions?: NaturalSortOptions
|
||||
): T[] {
|
||||
if (!items) return [];
|
||||
if (!items) {
|
||||
return [];
|
||||
}
|
||||
const sort = sortOptions
|
||||
? naturalSort({
|
||||
caseSensitive: sortOptions.caseSensitive,
|
||||
|
||||
Reference in New Issue
Block a user