Skip to content

Commit

Permalink
eslint:fix
Browse files Browse the repository at this point in the history
    Expected only 0 line after block description  jsdoc/tag-lines
  • Loading branch information
legobeat committed Sep 18, 2023
1 parent 856e682 commit 5d88410
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
7 changes: 0 additions & 7 deletions src/create-infura-middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ const RETRIABLE_ERRORS = [
/**
* Builds [`json-rpc-engine`](https://github.com/MetaMask/json-rpc-engine)-compatible middleware designed
* for interfacing with Infura's JSON-RPC endpoints.
*
* @param opts - The options.
* @param opts.network - A network that Infura supports; plugs into
* `https://${network}.infura.io` (default: 'mainnet').
Expand Down Expand Up @@ -132,7 +131,6 @@ export function createInfuraMiddleware({
/**
* Makes a request to Infura, updating the given response object if the response
* has a "successful" status code or throwing an error otherwise.
*
* @param network - A network that Infura supports; plugs into
* `https://${network}.infura.io`.
* @param projectId - The Infura project id.
Expand Down Expand Up @@ -196,7 +194,6 @@ async function performFetch(
/**
* Builds a JSON-RPC 2.0 internal error object describing a rate-limiting
* error.
*
* @returns The error object.
*/
function createRatelimitError(): EthereumRpcError<undefined> {
Expand All @@ -206,7 +203,6 @@ function createRatelimitError(): EthereumRpcError<undefined> {

/**
* Builds a JSON-RPC 2.0 internal error object describing a timeout error.
*
* @returns The error object.
*/
function createTimeoutError(): EthereumRpcError<undefined> {
Expand All @@ -217,7 +213,6 @@ function createTimeoutError(): EthereumRpcError<undefined> {

/**
* Builds a JSON-RPC 2.0 internal error object.
*
* @param msg - The message.
* @returns The error object.
*/
Expand All @@ -230,7 +225,6 @@ function createInternalError(msg: string): EthereumRpcError<undefined> {
* intermittent. In these cases we can attempt the request again with the
* assumption that the error is unlikely to occur again. Here we determine if we
* have received such an error.
*
* @param err - The error object.
* @returns Whether the request that produced the error can be retried.
*/
Expand All @@ -241,7 +235,6 @@ function isRetriableError(err: any): boolean {

/**
* A utility function that promisifies `setTimeout`.
*
* @param length - The number of milliseconds to wait.
* @returns A promise that resolves after the given time has elapsed.
*/
Expand Down
1 change: 0 additions & 1 deletion src/create-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { createInfuraMiddleware } from './create-infura-middleware';
* [`eth-json-rpc-provider`](https://github.com/MetaMask/eth-json-rpc-provider)
* which is preloaded with middleware specialized for interfacing with Infura
* JSON-RPC endpoints.
*
* @param opts - Options to {@link createInfuraMiddleware}.
* @returns The provider as returned by `providerFromEngine` (a part of
* [`eth-json-rpc-provider`](https://github.com/MetaMask/eth-json-rpc-provider)).
Expand Down
2 changes: 0 additions & 2 deletions src/fetch-config-from-req.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ type FetchConfig = {
/**
* Determines the arguments to feed into `fetch` in order to make a request to
* Infura.
*
* @param options - The options.
* @param options.network - A network that Infura supports; plugs into
* `https://${network}.infura.io`.
Expand Down Expand Up @@ -69,7 +68,6 @@ export function fetchConfigFromReq({
/**
* Strips out extra keys from a request object that could be rejected by strict
* nodes like parity.
*
* @param req - The original request object obtained via the middleware stack.
* @returns An object that describes a JSON-RPC request.
*/
Expand Down

0 comments on commit 5d88410

Please sign in to comment.