Skip to content

Commit bc3f63c

Browse files
committed
fix: eslint
1 parent d4042c1 commit bc3f63c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

config/plugin-commands-config/test/configGet.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import { config } from '@pnpm/plugin-commands-config'
55
* Recursively clone an object and give every object inside the clone a null prototype.
66
* Making it possible to compare it to the result of `ini.decode` with `toStrictEqual`.
77
*/
8-
function deepNullProto<Object> (object: Object): Object {
9-
if (object == null || typeof object !== 'object' || Array.isArray(object)) return object
8+
function deepNullProto<Value> (value: Value): Value {
9+
if (value == null || typeof value !== 'object' || Array.isArray(value)) return value
1010

11-
const result: Object = Object.create(null)
12-
for (const key in object) {
13-
result[key] = deepNullProto(object[key])
11+
const result: Value = Object.create(null)
12+
for (const key in value) {
13+
result[key] = deepNullProto(value[key])
1414
}
1515
return result
1616
}

0 commit comments

Comments
 (0)