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

Commit 5218633

Browse files
author
Piotr Wyrobek
committed
feat(linter): fixing linting
1 parent 01e5910 commit 5218633

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ module.exports = (userOptions = {}) => {
5757
// will replace ids from the route with `#val` placeholder this serves to
5858
// measure the same routes, e.g., /image/id1, and /image/id2, will be
5959
// treated as the same route
60-
const customNormalizedPath = typeof option.customUrlNormalizer === 'function' ?
61-
option.customPathNormalizer(originalUrl, req, res) : null;
60+
const customNormalizedPath = typeof options.customUrlNormalizer === 'function'
61+
? options.customPathNormalizer(originalUrl, req, res) : null;
6262

63-
const route = normalizePath(customNormalizedPath|| originalUrl, options.extraMasks);
63+
const route = normalizePath(customNormalizedPath || originalUrl, options.extraMasks);
6464

6565
if (route !== metricsPath) {
6666
const status = normalizeStatus

0 commit comments

Comments
 (0)