Skip to content

Commit 95ea041

Browse files
committed
Remove time logging
We don't want it.
1 parent 2575b70 commit 95ea041

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

preview/preview.js

-2
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ const checkRedirects = async (core, path) => {
148148
*/
149149
// TODO Rebuild redirects file without nginx stuff. And stream it properly.
150150
let target = "/guide" + path;
151-
const redirectsStart = Date.now();
152151
const streamToString = stream => {
153152
const chunks = []
154153
return new Promise((resolve, reject) => {
@@ -171,7 +170,6 @@ const checkRedirects = async (core, path) => {
171170
const regex = new RegExp(regexText.replace('(?i)', ''), 'i');
172171
target = target.replace(regex, replacement);
173172
}
174-
console.log("took", Date.now() - redirectsStart);
175173
return "/guide" + path === target ? null : target;
176174
}
177175

0 commit comments

Comments
 (0)