deno fmt + fix spacing in log message

This commit is contained in:
Ean Milligan 2025-08-06 14:43:26 -04:00
parent 4a5e33c9a0
commit 4efbed7424
2 changed files with 4 additions and 4 deletions

View File

@ -77,8 +77,8 @@ export const mathSolver = (conf: MathConf[], wrapDetails = false): SolvedStep =>
for (let i = 1; i < conf.length; i++) { for (let i = 1; i < conf.length; i++) {
loopCountCheck('mathSolver.ts - checking for implicit multiplication'); loopCountCheck('mathSolver.ts - checking for implicit multiplication');
const prevConfAsStr = <string>conf[i - 1]; const prevConfAsStr = <string> conf[i - 1];
const curConfAsStr = <string>conf[i]; const curConfAsStr = <string> conf[i];
if (!signs.includes(curConfAsStr) && !signs.includes(prevConfAsStr)) { if (!signs.includes(curConfAsStr) && !signs.includes(prevConfAsStr)) {
// Both previous and current conf are operators, slip in the "*" // Both previous and current conf are operators, slip in the "*"
conf.splice(i, 0, '*'); conf.splice(i, 0, '*');
@ -197,7 +197,7 @@ export const mathSolver = (conf: MathConf[], wrapDetails = false): SolvedStep =>
stepSolve.details = conf[0].toString(); stepSolve.details = conf[0].toString();
} else { } else {
// Else fully populate the stepSolve with what was computed // Else fully populate the stepSolve with what was computed
const tempConf = <SolvedStep>conf[0]; const tempConf = <SolvedStep> conf[0];
stepSolve.total = tempConf.total; stepSolve.total = tempConf.total;
stepSolve.details = tempConf.details; stepSolve.details = tempConf.details;
stepSolve.containsCrit = tempConf.containsCrit; stepSolve.containsCrit = tempConf.containsCrit;

View File

@ -23,7 +23,7 @@ const checkBalance = (
// Verify there are equal numbers of opening and closing parenthesis by adding 1 for opening parens and subtracting 1 for closing parens // Verify there are equal numbers of opening and closing parenthesis by adding 1 for opening parens and subtracting 1 for closing parens
for (let i = openIdx; i < conf.length; i++) { for (let i = openIdx; i < conf.length; i++) {
countLoops && countLoops &&
loopCountCheck(`parenBalance.ts - ${getMatching ? 'Looking for matching' : 'Checking'} ${openStr}/${closeStr} ${getMatching ? '' : 'balance '}`); loopCountCheck(`parenBalance.ts - ${getMatching ? 'Looking for matching' : 'Checking'} ${openStr}/${closeStr}${getMatching ? '' : ' balance'}`);
loggingEnabled && loggingEnabled &&
log( log(
LT.LOG, LT.LOG,