Skip to content

Commit

Permalink
Remove invalid type info
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed Feb 13, 2024
1 parent 0b3c1ba commit 73b7165
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ async function fetchMempoolData() : Promise<MempoolFeeEstimates | null> {
const isRes1Invalid = !res1 || (Object.values(res1).every((value) => value === 1));

// Return a response that is valid, or null if both responses are invald.
let data : MempoolFeeEstimates;
let data
if (!isRes0Invalid) {
data = res0;
} else {
Expand All @@ -205,7 +205,7 @@ async function fetchEsploraData() : Promise<FeeByBlockTarget | null> {
let res0 = getValueFromFulfilledPromise(results[0]);
let res1 = getValueFromFulfilledPromise(results[1]);

const data: FeeByBlockTarget = res0 || res1 || null;
const data = res0 || res1 || null;
logger.info({ message: 'Using data from esplora: {data}', data });
return data;
}
Expand Down

0 comments on commit 73b7165

Please sign in to comment.