fix(sonar): took down minor sonar warning

This commit is contained in:
Corentin Thomasset authored and Corentin THOMASSET committed 2023-06-18 14:56:52 +02:00
1 parent ebfb872fae
commit 4cbd7ac145
2 files changed
+1 -3

No files matched your search

+1 -1
View File
@@ -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;