kleros/kleros-v2

View on GitHub
kleros-sdk/src/dataMappings/executeActions.ts

Summary

Maintainability
A
0 mins
Test Coverage

Unnecessary 'await'.
Open

      return await eventAction(validateAbiEventMapping(mapping), context.alchemyApiKey);

Rule: no-return-await

Disallows unnecessary return await.

Rationale

An async function always wraps the return value in a Promise. Using return await just adds extra time before the overreaching promise is resolved without changing the semantics.

Notes
  • Has Fix

Config

Not configurable.

Examples
"no-return-await": true

For more information see this page.

Unnecessary 'await'.
Open

      return await retrieveRealityData(mapping.realityQuestionID, context.arbitrableAddress);

Rule: no-return-await

Disallows unnecessary return await.

Rationale

An async function always wraps the return value in a Promise. Using return await just adds extra time before the overreaching promise is resolved without changing the semantics.

Notes
  • Has Fix

Config

Not configurable.

Examples
"no-return-await": true

For more information see this page.

Unnecessary 'await'.
Open

      return await callAction(validateAbiCallMapping(mapping), context.alchemyApiKey);

Rule: no-return-await

Disallows unnecessary return await.

Rationale

An async function always wraps the return value in a Promise. Using return await just adds extra time before the overreaching promise is resolved without changing the semantics.

Notes
  • Has Fix

Config

Not configurable.

Examples
"no-return-await": true

For more information see this page.

Unnecessary 'await'.
Open

      return await fetchIpfsJsonAction(validateFetchIpfsJsonMapping(mapping));

Rule: no-return-await

Disallows unnecessary return await.

Rationale

An async function always wraps the return value in a Promise. Using return await just adds extra time before the overreaching promise is resolved without changing the semantics.

Notes
  • Has Fix

Config

Not configurable.

Examples
"no-return-await": true

For more information see this page.

Unnecessary 'await'.
Open

      return await subgraphAction(validateSubgraphMapping(mapping));

Rule: no-return-await

Disallows unnecessary return await.

Rationale

An async function always wraps the return value in a Promise. Using return await just adds extra time before the overreaching promise is resolved without changing the semantics.

Notes
  • Has Fix

Config

Not configurable.

Examples
"no-return-await": true

For more information see this page.

There are no issues that match your filters.

Category
Status