Skip to content

Commit 56f231f

Browse files
authored
Remove obsolete DEBUG_COLORS logic (#562)
1 parent d3199ad commit 56f231f

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/lighthouse.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,6 @@ import lighthouse from 'lighthouse';
33
import log from 'lighthouse-logger';
44
import chromeLauncher from 'chrome-launcher';
55

6-
// we set DEBUG_COLORS = 'true' to prevent the logger from prefixing a date when running in tty
7-
// keep the old DEBUG_COLORS value so we can return it to the original value
8-
let debugColorsSet = false;
9-
let debugColorsOriginalValue;
10-
if ('DEBUG_COLORS' in process.env) {
11-
debugColorsSet = true;
12-
debugColorsOriginalValue = process.env.DEBUG_COLORS;
13-
}
14-
process.env.DEBUG_COLORS = 'true';
15-
16-
// we can return the original value after requiring the dependencies
17-
if (debugColorsSet) {
18-
process.env.DEBUG_COLORS = debugColorsOriginalValue;
19-
} else {
20-
delete process.env.DEBUG_COLORS;
21-
}
22-
236
export const getBrowserPath = async () => {
247
const browserFetcher = puppeteer.createBrowserFetcher();
258
const revisions = await browserFetcher.localRevisions();

0 commit comments

Comments
 (0)