From 6a57a4e565f82e302002eb2a5492fed7aa4ece5c Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Wed, 14 Jan 2015 10:11:07 +1100 Subject: [PATCH] fix linting errors --- .../transformers/es6-computed-property-names.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/6to5/transformation/transformers/es6-computed-property-names.js b/lib/6to5/transformation/transformers/es6-computed-property-names.js index bc3c9091f2..f84a522086 100644 --- a/lib/6to5/transformation/transformers/es6-computed-property-names.js +++ b/lib/6to5/transformation/transformers/es6-computed-property-names.js @@ -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);