Skip to content
This repository was archived by the owner on Dec 5, 2023. It is now read-only.

Commit 7748f94

Browse files
remove parse method, only confuses people and it's not used
1 parent 00017da commit 7748f94

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

api/metrics/index.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,6 @@
1818
return (diff[0] * 1e9 + diff[1]) / 1000000000;
1919
}
2020

21-
function parse(path) {
22-
var clean_path = path;
23-
var ignore_list = ['css', 'img', 'js'];
24-
25-
if (ignore_list.indexOf(path.split('/')[1]) != -1) {
26-
clean_path = '/' + path.split('/')[1] + '/';
27-
}
28-
29-
return clean_path;
30-
}
31-
3221
function observe(method, path, statusCode, start) {
3322
var path = path.toLowerCase();
3423
if (path !== '/metrics' && path !== '/metrics/') {

0 commit comments

Comments
 (0)