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