fix(sonar): took down minor sonar warning

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

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;