fix linting errors
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user