From 6eef23e2aad962e1509a917c609ec5f92f3b6102 Mon Sep 17 00:00:00 2001 From: Einar Lielmanis Date: Sat, 11 Aug 2012 05:53:21 +0300 Subject: [PATCH] Remove some unneeded get_next_token args (#139) --- beautify.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/beautify.js b/beautify.js index 50c5ebf31..dbb2f4964 100644 --- a/beautify.js +++ b/beautify.js @@ -405,7 +405,7 @@ function js_beautify(js_source_text, options) { var sign = input.charAt(parser_pos); parser_pos += 1; - var t = get_next_token(parser_pos); + var t = get_next_token(); c += sign + t[0]; return [c, 'TK_WORD']; } @@ -702,7 +702,7 @@ function js_beautify(js_source_text, options) { parser_pos = 0; while (true) { - var t = get_next_token(parser_pos); + var t = get_next_token(); token_text = t[0]; token_type = t[1]; if (token_type === 'TK_EOF') { @@ -943,7 +943,7 @@ function js_beautify(js_source_text, options) { // foo = function print_single_space(); } else if (is_expression(flags.mode)) { - // print nothing + //รครค print nothing } else { print_newline(); }