Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9b32037

Browse files
committed
Cleanup pasted code
1 parent 47ed4e6 commit 9b32037

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

subaru.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,8 @@ async function run() {
9191
}
9292

9393
allCars.sort(function (a, b) {
94-
const keyA = a.finalPrice;
95-
const keyB = b.finalPrice;
96-
// Compare the 2 dates
97-
if (keyA < keyB) return -1;
98-
if (keyA > keyB) return 1;
94+
if (a.finalPrice < b.finalPrice) return -1;
95+
if (a.finalPrice > b.finalPrice) return 1;
9996
return 0;
10097
});
10198

0 commit comments

Comments
 (0)