Skip to content

Commit e237377

Browse files
authored
fix: Removed the unused doUnesc param in the unsafe function (#243)
The function `unsafe` have a parameter that is not used anywhere : `doUnesc`. In this PR, this parameter is removed, also making the function declaration syntaxically closer to `safe`. Before : `const unsafe = (val, doUnesc) => {` Now : `const unsafe = val => {`
1 parent 29caa7c commit e237377

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ini.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ const safe = val => {
225225
return val.split(';').join('\\;').split('#').join('\\#')
226226
}
227227

228-
const unsafe = (val, doUnesc) => {
228+
const unsafe = val => {
229229
val = (val || '').trim()
230230
if (isQuoted(val)) {
231231
// remove the single quotes before calling JSON.parse

0 commit comments

Comments
 (0)