Skip to content

Commit

Permalink
Remove some unneeded get_next_token args (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
einars committed Aug 11, 2012
1 parent 2b3b0fe commit 6eef23e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions beautify.js
Expand Up @@ -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'];
}
Expand Down Expand Up @@ -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') {
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit 6eef23e

Please sign in to comment.