File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -313,12 +313,11 @@ export const stringifyMod = (
313313 const nextPrettyLevel = prettyLevel ? prettyLevel + 1 : false
314314 const newLine = prettyLevel ? '\n' : ''
315315 const indentation =
316- prettyLevel && ! skipOpeningIndentation ? Array ( prettyLevel ) . join ( ' ' ) : ''
317- const nextIndentation =
318- nextPrettyLevel && ! skipOpeningIndentation
319- ? Array ( nextPrettyLevel ) . join ( ' ' )
320- : ''
321- const endIndentation = prettyLevel ? Array ( prettyLevel ) . join ( ' ' ) : ''
316+ prettyLevel && ! skipOpeningIndentation ? ' ' . repeat ( prettyLevel - 1 ) : ''
317+ const nextIndentation = nextPrettyLevel
318+ ? ' ' . repeat ( nextPrettyLevel - 1 )
319+ : ''
320+ const endIndentation = prettyLevel ? ' ' . repeat ( prettyLevel - 1 ) : ''
322321 const propSpacing = prettyLevel ? ' ' : ''
323322 const toString = Object . prototype . toString
324323 const isArray =
You can’t perform that action at this time.
0 commit comments