Skip to content

Commit

Permalink
[getsentry/action-github-commit] Auto commit
Browse files Browse the repository at this point in the history
  • Loading branch information
getsantry[bot] committed Jul 24, 2024
1 parent f7b16ec commit 814afb5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/lint-404s/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import {readFileSync} from 'fs';
import path, {dirname} from 'path';
import {fileURLToPath} from 'url';
import readline from 'readline';
import {fileURLToPath} from 'url';

const baseURL = 'http://localhost:3000/';
type Link = {href: string; innerText: string};
Expand Down Expand Up @@ -155,12 +155,12 @@ const humanReadableMs = (ms: number) => {
const oneMinute = oneSecond * 60;
if (ms < oneSecond) {
return `${ms.toFixed(1)} ms`;
} else if (ms < oneMinute) {
}
if (ms < oneMinute) {
return `${(ms / 1000).toFixed(1)} s`;
} else {
// show minutes and seconds
return `${Math.floor(ms / oneMinute)} m ${((ms % oneMinute) / 1000).toFixed(1)} s`;
}
// show minutes and seconds
return `${Math.floor(ms / oneMinute)} m ${((ms % oneMinute) / 1000).toFixed(1)} s`;
};

main().then(has404s => {
Expand Down

0 comments on commit 814afb5

Please sign in to comment.