mirror of
https://github.com/Art051/it-tools.git
synced 2025-08-11 19:29:03 +00:00
fix(sonar): took down minor sonar warning
This commit is contained in:
committed by
Corentin THOMASSET
parent
ebfb872fae
commit
4cbd7ac145
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user