Skip to content

Commit

Permalink
remove assert
Browse files Browse the repository at this point in the history
  • Loading branch information
pawel-id committed Mar 3, 2024
1 parent 278b0fd commit 3a06a7b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/normalize.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import assert from 'node:assert'

/**
* Lower first letter of the string.
*/
Expand Down Expand Up @@ -70,9 +68,6 @@ function morph(
} else {
let newObj: Record<string, any> = {}
for (let [key, value] of Object.entries(obj)) {
// technically this should never happen here, but let's be safe
assert(typeof key === 'string', 'Only string keys are supported')

if (typeof value === 'object') {
newObj[key] = morph(value, fn)
} else {
Expand Down

0 comments on commit 3a06a7b

Please sign in to comment.