Skip to content

Commit f6bc028

Browse files
committed
vfs: fix lint warnings in router.js and test-vfs-chdir.js
Remove blank lines between JSDoc description and @param tags (jsdoc/tag-lines) and remove unused `common` variable assignment (no-unused-vars).
1 parent 9a8de57 commit f6bc028

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

lib/internal/vfs/router.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ const { isAbsolute, relative, sep } = require('path');
2222
* handles root mount points like 'C:\' on Windows, where the mount point
2323
* already ends with a backslash. Without this check, appending another
2424
* separator would produce 'C:\\' which would never match any path.
25-
*
2625
* @param {string} normalizedPath A normalized absolute path
2726
* @param {string} mountPoint A normalized mount point path
2827
* @returns {boolean}
@@ -56,7 +55,6 @@ function isUnderMountPoint(normalizedPath, mountPoint) {
5655
* A simpler `StringPrototypeSlice(normalizedPath, mountPoint.length)` would
5756
* work on POSIX but would produce '\src\index.js' on Windows (with a leading
5857
* backslash and backslash separators), which the provider cannot look up.
59-
*
6058
* @param {string} normalizedPath A normalized absolute path
6159
* @param {string} mountPoint A normalized mount point path
6260
* @returns {string} The relative path (starting with /)

test/parallel/test-vfs-chdir.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const common = require('../common');
3+
require('../common');
44
const assert = require('assert');
55
const fs = require('fs');
66
const os = require('os');

0 commit comments

Comments
 (0)