Skip to content

Commit 73bddd9

Browse files
committed
chore(linting): no-unused-vars
1 parent d3836e6 commit 73bddd9

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

test/basic.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ const writeFileAtomic = t.mock('..', {
8585
}
8686
cb()
8787
},
88-
realpathSync (filename, cb) {
88+
realpathSync (filename) {
8989
return filename
9090
},
91-
openSync (tmpfile, options) {
91+
openSync (tmpfile) {
9292
if (/noopen/.test(tmpfile)) {
9393
throw createErr('ENOOPEN')
9494
}
@@ -105,10 +105,10 @@ const writeFileAtomic = t.mock('..', {
105105
throw createErr('ENOFSYNC')
106106
}
107107
},
108-
closeSync (fd) {
108+
closeSync () {
109109
closeSyncCalled++
110110
},
111-
chownSync (tmpfile, uid, gid) {
111+
chownSync (tmpfile) {
112112
if (/nochown/.test(tmpfile)) {
113113
throw createErr('ENOCHOWN')
114114
}
@@ -122,7 +122,7 @@ const writeFileAtomic = t.mock('..', {
122122
throw createErr('EPERM')
123123
}
124124
},
125-
chmodSync (tmpfile, mode) {
125+
chmodSync (tmpfile) {
126126
if (/nochmod/.test(tmpfile)) {
127127
throw createErr('ENOCHMOD')
128128
}
@@ -136,7 +136,7 @@ const writeFileAtomic = t.mock('..', {
136136
throw createErr('EPERM')
137137
}
138138
},
139-
renameSync (tmpfile, filename) {
139+
renameSync (tmpfile) {
140140
if (/norename/.test(tmpfile)) {
141141
throw createErr('ENORENAME')
142142
}
@@ -412,7 +412,7 @@ t.test('promises', async t => {
412412
t.match(tmpfile, /^good\.\d+$/, 'tmpfileCreated is called for success')
413413

414414
await writeFileAtomic('good', 'test', {
415-
tmpfileCreated (gottmpfile) {
415+
tmpfileCreated () {
416416
return Promise.resolve()
417417
},
418418
})

test/concurrency.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ const fs = {
5757
}
5858
cb()
5959
},
60-
realpathSync (filename, cb) {
60+
realpathSync (filename) {
6161
return filename
6262
},
63-
openSync (tmpfile, options) {
63+
openSync (tmpfile) {
6464
if (/noopen/.test(tmpfile)) {
6565
throw new Error('ENOOPEN')
6666
}
@@ -77,17 +77,17 @@ const fs = {
7777
}
7878
},
7979
closeSync () { },
80-
chownSync (tmpfile, uid, gid) {
80+
chownSync (tmpfile) {
8181
if (/nochown/.test(tmpfile)) {
8282
throw new Error('ENOCHOWN')
8383
}
8484
},
85-
chmodSync (tmpfile, mode) {
85+
chmodSync (tmpfile) {
8686
if (/nochmod/.test(tmpfile)) {
8787
throw new Error('ENOCHMOD')
8888
}
8989
},
90-
renameSync (tmpfile, filename) {
90+
renameSync (tmpfile) {
9191
if (/norename/.test(tmpfile)) {
9292
throw new Error('ENORENAME')
9393
}

0 commit comments

Comments
 (0)