Skip to content

Commit 0c1e573

Browse files
committed
Removed unnecesary declaration
1 parent 3a41f81 commit 0c1e573

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/molecularMass.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function MM(formula) {
4444
let total = null
4545
let numMatch = null
4646

47-
const formula = formula.replace(/\s/g, '');
47+
formula = formula.replace(/\s/g, '');
4848
chemArray.forEach(x => {
4949
if (simpleFormula.test(x)) {
5050
elmass[level] = addMolecules(elmass[level], chemEval(x), 1)

0 commit comments

Comments
 (0)