diff options
author | Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> | 2021-02-24 02:47:13 +0300 |
---|---|---|
committer | Ruy Adorno <ruyadorno@hotmail.com> | 2021-03-04 23:57:50 +0300 |
commit | b33c760cea7fe2696d35b5530abc1b455980fef1 (patch) | |
tree | ce5310b5c6c5e253319de5fcf26d657c62c3c7d5 /test/lib/access.js | |
parent | c8b73db82f0f2445c20a0a64110586253accd66b (diff) |
Remove unused arguments on various function calls
I checked cli's code with Typescript using the tsconfig below. The
compiler found a few arguments that are not used, so I removed them. In
the case of `npm whoami`, it is clearer that it ignores its `args`
and instead relies on `npm.flatOptions`.
```json
{
"compilerOptions": {
"moduleResolution": "node",
"module": "commonjs",
"resolveJsonModule": true,
"target": "es2019",
"noImplicitAny": false,
"noImplicitThis": true,
"strict": true,
"maxNodeModuleJsDepth": 0,
"noEmit": true,
"allowJs": true,
"checkJs": true,
"types": ["node"],
"lib": ["esnext"]
},
"include": ["lib"]
}
```
PR-URL: https://github.com/npm/cli/pull/2766
Credit: @sandersn
Close: #2766
Reviewed-by: @nlf, @ruyadorno, @Matausi29
Diffstat (limited to 'test/lib/access.js')
0 files changed, 0 insertions, 0 deletions