deno fmt + fix spacing in log message
This commit is contained in:
parent
4a5e33c9a0
commit
4efbed7424
|
@ -77,8 +77,8 @@ export const mathSolver = (conf: MathConf[], wrapDetails = false): SolvedStep =>
|
|||
for (let i = 1; i < conf.length; i++) {
|
||||
loopCountCheck('mathSolver.ts - checking for implicit multiplication');
|
||||
|
||||
const prevConfAsStr = <string>conf[i - 1];
|
||||
const curConfAsStr = <string>conf[i];
|
||||
const prevConfAsStr = <string> conf[i - 1];
|
||||
const curConfAsStr = <string> conf[i];
|
||||
if (!signs.includes(curConfAsStr) && !signs.includes(prevConfAsStr)) {
|
||||
// Both previous and current conf are operators, slip in the "*"
|
||||
conf.splice(i, 0, '*');
|
||||
|
@ -197,7 +197,7 @@ export const mathSolver = (conf: MathConf[], wrapDetails = false): SolvedStep =>
|
|||
stepSolve.details = conf[0].toString();
|
||||
} else {
|
||||
// Else fully populate the stepSolve with what was computed
|
||||
const tempConf = <SolvedStep>conf[0];
|
||||
const tempConf = <SolvedStep> conf[0];
|
||||
stepSolve.total = tempConf.total;
|
||||
stepSolve.details = tempConf.details;
|
||||
stepSolve.containsCrit = tempConf.containsCrit;
|
||||
|
|
|
@ -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
|
||||
for (let i = openIdx; i < conf.length; i++) {
|
||||
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 &&
|
||||
log(
|
||||
LT.LOG,
|
||||
|
|
Loading…
Reference in New Issue