Skip to content

Commit

Permalink
Removed unnecesary declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
dvd101x committed Jan 9, 2025
1 parent 3a41f81 commit 0c1e573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/molecularMass.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function MM(formula) {
let total = null
let numMatch = null

const formula = formula.replace(/\s/g, '');
formula = formula.replace(/\s/g, '');
chemArray.forEach(x => {
if (simpleFormula.test(x)) {
elmass[level] = addMolecules(elmass[level], chemEval(x), 1)
Expand Down

0 comments on commit 0c1e573

Please sign in to comment.