geshan/currency-api

View on GitHub
src/exchangeRates.js

Summary

Maintainability
A
0 mins
Test Coverage
A
95%

Function getExternal has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Invalid

async function getExternal(fromCurrency, toCurrency, onDate) {
  let rate = 0;
  console.log(`Getting rate from the API not the db`);
  try {
    const response = await axios.get(
Severity: Minor
Found in src/exchangeRates.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status