Skip to content

Commit 5b86684

Browse files
committed
Use optional catch bindings
1 parent 6e806d1 commit 5b86684

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/watch.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ testCb('--watch works', t => {
7171
function done(err) {
7272
try {
7373
cp.kill()
74-
} catch (e) {}
74+
} catch {}
7575

7676
t.end(err)
7777
}
@@ -152,7 +152,7 @@ testCb('--watch postcss.config.js', t => {
152152
function done(err) {
153153
try {
154154
cp.kill()
155-
} catch (e) {}
155+
} catch {}
156156

157157
t.end(err)
158158
}
@@ -223,7 +223,7 @@ testCb('--watch dependencies', t => {
223223
function done(err) {
224224
try {
225225
cp.kill()
226-
} catch (e) {}
226+
} catch {}
227227
t.end(err)
228228
}
229229
})
@@ -274,7 +274,7 @@ testCb("--watch doesn't exit on CssSyntaxError", t => {
274274
function done(err) {
275275
try {
276276
cp.kill()
277-
} catch (e) {}
277+
} catch {}
278278

279279
t.end(err)
280280
}

0 commit comments

Comments
 (0)