fix linting errors
This commit is contained in:
parent
6a57a4e565
commit
313e932e7c
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user