fix linting errors

This commit is contained in:
Sebastian McKenzie 2015-05-31 09:24:12 +01:00
parent eadf8ef799
commit 1436753e6d
2 changed files with 2 additions and 4 deletions

View File

@ -21,7 +21,7 @@ class CodeGenerator {
this.opts = opts;
this.ast = ast;
this.whitespace = new Whitespace(this.tokens, this.comments, this.format);
this.whitespace = new Whitespace(this.tokens);
this.position = new Position;
this.map = new SourceMap(this.position, opts, code);
this.buffer = new Buffer(this.position, this.format);

View File

@ -1,5 +1,3 @@
import sortBy from "lodash/collection/sortBy";
/**
* Returns `i`th number from `base`, continuing from 0 when `max` is reached.
* Useful for shifting `for` loop by a fixed number but going over all items.
@ -21,7 +19,7 @@ function getLookupIndex(i, base, max) {
}
export default class Whitespace {
constructor(tokens, comments) {
constructor(tokens) {
this.tokens = tokens;
this.used = {};