Skip to content

Commit ea28c55

Browse files
committed
refactor: Remove undefined from empty values array
1 parent 3156a14 commit ea28c55

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/eth-json-rpc-middleware/src/retryOnEmpty.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,7 @@ import { timeout } from './utils/timeout';
2121
const log = createModuleLogger(projectLogger, 'retry-on-empty');
2222
// empty values used to determine if a request should be retried
2323
// `<nil>` comes from https://github.com/ethereum/go-ethereum/issues/16925
24-
const emptyValues: (string | null | undefined)[] = [
25-
undefined,
26-
null,
27-
'\u003cnil\u003e',
28-
];
24+
const emptyValues = [null, '\u003cnil\u003e'];
2925

3026
/**
3127
* Creates a middleware that retries requests with empty responses.

0 commit comments

Comments
 (0)