fix linting errors

This commit is contained in:
Sebastian McKenzie 2015-06-07 20:04:30 +01:00
parent 776c508418
commit 75330304dc
3 changed files with 3 additions and 4 deletions

View File

@ -71,7 +71,7 @@ export function _ForOfStatementArray(node, scope, file) {
}
if (this.parentPath.isLabeledStatement()) {
loop = t.labeledStatement(this.parentPath.node.label, loop)
loop = t.labeledStatement(this.parentPath.node.label, loop);
}
nodes.push(loop);

View File

@ -1,4 +1,3 @@
import isNumber from "lodash/lang/isNumber";
import * as util from "../../../util";
import * as t from "../../../types";

View File

@ -45,7 +45,7 @@ export function removeTypeDuplicates(nodes) {
// find a matching generic type and merge and deduplicate the type parameters
if (t.isGenericTypeAnnotation(node)) {
var name = node.id.name;
let name = node.id.name;
if (generics[name]) {
var existing = generics[name];
@ -74,7 +74,7 @@ export function removeTypeDuplicates(nodes) {
}
// add back in generics
for (var name in generics) {
for (let name in generics) {
types.push(generics[name]);
}