Skip to content

Commit

Permalink
Beautifier run on tests/fixtures/forin.js
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Sep 16, 2014
1 parent 090ec1c commit 076807b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/unit/fixtures/forin.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ for (var key in objects) {
}

for (var key in objects) {
if (! objects.hasOwnProperty(key)) {
if (!objects.hasOwnProperty(key)) {
continue;
}
hey();
Expand All @@ -21,27 +21,27 @@ for (var key in objects) {

// No continue
for (var key in objects) {
if (! objects.hasOwnProperty(key)) {
if (!objects.hasOwnProperty(key)) {
hey();
}
hey();
}

// Nested loops
for (var key in objects) {
if (! objects.hasOwnProperty(key)) {
if (!objects.hasOwnProperty(key)) {
continue;
}

// No if statement
for (var key2 in objects) {
hey();

for (var key3 in objects) {
if (objects.hasOwnProperty(key3)) {
// No continue
for (var key4 in objects) {
if (! objects.hasOwnProperty(key4)) {
if (!objects.hasOwnProperty(key4)) {
hey();
}
}
Expand All @@ -67,7 +67,7 @@ for (var p in o) {
// Empty for in block like the one found in jQuery
// JSHINT would crash upon finding this and wouldn't continue
// GH-336
for ( key in objects ) { }
for (key in objects) {}

// Let's make sure we continue scanning the rest of the file.
for (key in objects) {
Expand Down

0 comments on commit 076807b

Please sign in to comment.