Skip to content

Commit 062de35

Browse files
committed
refactor: clean up unnecessary additional types in internal console suppression function
1 parent 5746359 commit 062de35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/console.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function enableErrorOutputSuppression() {
77
typeof afterEach === 'function' &&
88
!process.env.RHTL_DISABLE_ERROR_FILTERING
99
) {
10-
let restoreConsole: (() => void) | null = null
10+
let restoreConsole: () => void
1111

1212
beforeEach(() => {
1313
restoreConsole = filterConsole(

0 commit comments

Comments
 (0)