fix linting errors

This commit is contained in:
Sebastian McKenzie
2015-02-10 23:55:11 +11:00
parent 8598000a69
commit 62fa583fc1

View File

@@ -10,7 +10,6 @@ var flatten = require("lodash/array/flatten");
var extend = require("lodash/object/extend");
var object = require("../helpers/object");
var each = require("lodash/collection/each");
var has = require("lodash/object/has");
var t = require("../types");
/**
@@ -163,7 +162,7 @@ Scope.prototype.rename = function (oldName, newName) {
if (t.isReferencedIdentifier(node, parent) && node.name === oldName) {
node.name = newName;
} else if (t.isScope(node)) {
if (t.getBindingIdentifier(oldName) !== binding) {
if (scope.bindingIdentifierEquals(oldName, binding)) {
this.skip();
}
}