Skip to content

Commit 251c00e

Browse files
committed
chore: Code Optimization
1 parent e7d1f36 commit 251c00e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/utils/expandUtil.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,10 @@ export function computedExpandedClassName<RecordType>(
5757
index: number,
5858
indent: number,
5959
) {
60-
let resultClsName = '';
6160
if (typeof cls === 'string') {
62-
resultClsName = cls;
61+
return cls;
6362
}
6463
if (typeof cls === 'function') {
65-
resultClsName = cls(record, index, indent);
64+
return cls(record, index, indent);
6665
}
67-
return resultClsName;
6866
}

0 commit comments

Comments
 (0)