Skip to content

Commit 6a3116c

Browse files
committed
remove early return
1 parent 3aa7a52 commit 6a3116c

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

packages/core/src/utils-hoist/object.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,6 @@ export function extractExceptionKeysForMessage(exception: Record<string, unknown
212212
* Attention: This function keeps circular references in the returned object.
213213
*/
214214
export function dropUndefinedKeys<T>(inputValue: T): T {
215-
// Early return for primitive values
216-
if (inputValue === null || typeof inputValue !== 'object') {
217-
return inputValue;
218-
}
219-
220215
// This map keeps track of what already visited nodes map to.
221216
// Our Set - based memoBuilder doesn't work here because we want to the output object to have the same circular
222217
// references as the input object.

0 commit comments

Comments
 (0)