fix linting errors

This commit is contained in:
Sebastian McKenzie 2015-01-14 10:11:41 +11:00
parent 6a57a4e565
commit 313e932e7c

View File

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