Skip to content

Commit

Permalink
Merge pull request #587 from clickthisnick/chore-remove-trailing-spaces
Browse files Browse the repository at this point in the history
CHORE - Remove Trailing Spaces
  • Loading branch information
gotwarlost committed Apr 6, 2016
2 parents fc3ba35 + e589625 commit 0e8c350
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/hook.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ function hookRequire(matcher, transformer, options) {
extensions = options.extensions || ['.js'];

extensions.forEach(function(ext){
if (!(ext in originalLoaders)) {
if (!(ext in originalLoaders)) {
originalLoaders[ext] = Module._extensions[ext] || Module._extensions['.js'];
}
}
Module._extensions[ext] = function (module, filename) {
var ret = fn(fs.readFileSync(filename, 'utf8'), filename);
if (ret.changed) {
Expand Down
2 changes: 1 addition & 1 deletion misc/ast/do-statement.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var i = 5;
do
do
i--;
while (i > 0);

2 changes: 1 addition & 1 deletion misc/ast/label.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var items= [],itemsPassed = 0;
var i, j;

function foo()
function foo()
{
top:
for (i = 0; i < items.length; i++){
Expand Down
4 changes: 2 additions & 2 deletions test/cli/test-html-report.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ module.exports = {
},
relativeName: 'generate-names-mangled.js'
};

result = reporter.standardLinkMapper().ancestorHref(node, 2);

test.ok(result === '../../');
Expand All @@ -262,7 +262,7 @@ module.exports = {
},
relativeName: 'generate-names-mangled.js'
};

result = reporter.standardLinkMapper().ancestorHref(node, 2);

test.ok(result === '../../');
Expand Down
2 changes: 1 addition & 1 deletion test/cli/test-json-summary-report.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module.exports = {
});
finalSummary = objectUtils.mergeSummaryObjects.apply(null, summaries);
obj.total = finalSummary;

test.ok(existsSync(jsonFile));
reportObj = JSON.parse(fs.readFileSync(jsonFile, 'utf8'));
test.deepEqual(Object.keys(obj).sort(), Object.keys(reportObj).sort());
Expand Down

0 comments on commit 0e8c350

Please sign in to comment.