fix linting errors

This commit is contained in:
Sebastian McKenzie 2015-01-14 10:11:07 +11:00
parent fc3a5f25fb
commit 6a57a4e565

View File

@ -60,10 +60,10 @@ var spec = function (node, body, objId, initProps, file) {
// normalise key
for (var i in props) {
prop = props[i];
var prop = props[i];
if (prop.kind !== "init") continue;
key = prop.key;
var key = prop.key;
if (!prop.computed && t.isIdentifier(key)) {
prop.key = t.literal(key.name);