From 0c85caa730c3c4091ac8b8fabdd90cc68248a576 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Thu, 18 Feb 2021 16:43:14 +0800 Subject: [PATCH] Fix 'ReferenceError: indent is not defined' (#1331) --- lib/svgo/coa.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/svgo/coa.js b/lib/svgo/coa.js index 3e412e280..63fcb74f7 100644 --- a/lib/svgo/coa.js +++ b/lib/svgo/coa.js @@ -137,7 +137,7 @@ async function action(args, opts) { config.js2svg = config.js2svg || {}; config.js2svg.pretty = true; if (opts.indent != null) { - config.js2svg.indent = indent; + config.js2svg.indent = opts.indent; } }