Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Nov 16, 2022
1 parent 24cb6c5 commit fd128bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/getHistory.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// todo clean up

const fs = require('fs');
const Aggregate = require(`${__dirname}/aggregate.js`);
const Aggregate = require(`./aggregate.js`);

let gOptions;

Expand Down Expand Up @@ -77,9 +77,9 @@ function getFileData(options) {
// get list of directories
let dayList = getDirectories(options.path);
if (options.returnNewestEntries) {
dayList = dayList.sort((a, b) => b - a)
dayList = dayList.sort((a, b) => b - a);
} else {
dayList = dayList.sort((a, b) => a - b)
dayList = dayList.sort((a, b) => a - b);
}

// get all files in directory
Expand Down
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1098,9 +1098,9 @@ function getFileData(options, callback) {
// get list of directories
let dayList = getDirectories(options.path);
if (options.returnNewestEntries) {
dayList = dayList.sort((a, b) => b - a)
dayList = dayList.sort((a, b) => b - a);
} else {
dayList = dayList.sort((a, b) => a - b)
dayList = dayList.sort((a, b) => a - b);
}

if (options.id && options.id !== '*') {
Expand Down

0 comments on commit fd128bb

Please sign in to comment.