mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-23 16:26:15 -04:00
fix(sonar): took down minor sonar warning
This commit is contained in:
parent
ebfb872fae
commit
4cbd7ac145
2 changed files with 1 additions and 3 deletions
|
@ -13,7 +13,7 @@ function sortObjectKeys<T>(obj: T): T {
|
|||
}
|
||||
|
||||
return Object.keys(obj)
|
||||
.sort()
|
||||
.sort((a, b) => a.localeCompare(b))
|
||||
.reduce((sortedObj, key) => {
|
||||
sortedObj[key] = sortObjectKeys((obj as Record<string, unknown>)[key]);
|
||||
return sortedObj;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue