diff --git a/cssbeautify.js b/cssbeautify.js index d4ef93f..75565f4 100644 --- a/cssbeautify.js +++ b/cssbeautify.js @@ -89,13 +89,13 @@ } function closeBlock() { - var ch; + var last; depth -= 1; formatted = trimRight(formatted); if (formatted.length > 0 && autosemicolon) { - ch = formatted.charAt(formatted.length - 1); - if (ch !== ';' && ch !== '{') { + last = formatted.charAt(formatted.length - 1); + if (last !== ';' && last !== '{') { formatted += ';'; } }