fix(sonar): took down minor sonar warning
This commit is contained in:
1 parent
ebfb872fae
commit
4cbd7ac145
2 files changed
+1
-3
No files matched your search
@@ -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