From 5d9ab392643a93358e1d7595e8efb3d6d97d1181 Mon Sep 17 00:00:00 2001 From: Gar Date: Mon, 22 Aug 2022 10:20:47 -0700 Subject: [PATCH] fix: linting (#166) --- lib/ini.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ini.js b/lib/ini.js index 965e702..d05682b 100644 --- a/lib/ini.js +++ b/lib/ini.js @@ -186,7 +186,9 @@ const unsafe = (val, doUnesc) => { } try { val = JSON.parse(val) - } catch (_) {} + } catch { + // ignore errors + } } else { // walk the val to find the first not-escaped ; character let esc = false