Skip to content

Commit 371d3f1

Browse files
committed
Remove redundant ErrorFactory instance
1 parent 5b84da7 commit 371d3f1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/util/test/errors.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,5 @@ function dummy1() {
113113
}
114114

115115
function dummy2() {
116-
const error = new ErrorFactory<ErrorCode>('dummy', 'Dummy', ERROR_MAP);
117-
throw error.create('generic-error');
116+
throw ERROR_FACTORY.create('generic-error');
118117
}

0 commit comments

Comments
 (0)