Skip to content

Commit

Permalink
- cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ognian committed Mar 5, 2017
1 parent 9f94dee commit 22363cd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -4,4 +4,3 @@ lib
node_modules
npm-debug.log
test/output
.idea
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -34,8 +34,8 @@
"rimraf": "^2.4.3",
"react": "^15.1.0",
"react-intl":"^2.1.2",
"babel-plugin-react-intl": "2.1.3",
"react-intl-webpack-plugin":"0.0.3",
"babel-plugin-react-intl": "^2.1.3",
"react-intl-webpack-plugin":"^0.0.3",
"webpack": "^2.2.0-rc"
},
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Expand Up @@ -146,15 +146,15 @@ module.exports = function(source, inputSourceMap) {
transform: transpile,
}, function(err, result) {
if (err) { return callback(err); }
metadataSubscribers.map(function (s) {
metadataSubscribers.forEach(function (s) {
passMetadata(s, context, result.metadata);
});
return callback(null, result.code, result.map);
});
}

const result = transpile(source, options);
metadataSubscribers.map(function (s) {
metadataSubscribers.forEach(function (s) {
passMetadata(s, context, result.metadata);
});
this.callback(null, result.code, result.map);
Expand Down

0 comments on commit 22363cd

Please sign in to comment.