Skip to content

Commit 952c720

Browse files
committed
docs: fix indentation in an example
1 parent 85c7868 commit 952c720

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,12 @@ import { parse, isSafeNumber } from 'lossless-json'
160160

161161
const options = {
162162
parseNumber: (value) => {
163-
if (!isSafeNumber(value)) {
164-
throw new Error(`Cannot safely convert value '${value}' into a number`)
165-
}
166-
167-
return parseFloat(value)
163+
if (!isSafeNumber(value)) {
164+
throw new Error(`Cannot safely convert value '${value}' into a number`)
168165
}
166+
167+
return parseFloat(value)
168+
}
169169
}
170170

171171
// will parse with success if all values can be represented with a number

0 commit comments

Comments
 (0)