Skip to content

Commit

Permalink
Linter.
Browse files Browse the repository at this point in the history
  • Loading branch information
demmings committed Dec 9, 2024
1 parent a6df968 commit 1398c38
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion dist/CanadianTaxes.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ class CanadianTaxRates {

}

/**
* @classdesc - All relevant Ontario tax rates for indicated tax year.
*/
class OntarioTaxRates {
constructor() {

Expand Down Expand Up @@ -452,7 +455,7 @@ class CanadianIncomeCalculator {
* @param {Number} inflation
*/
static inflateBracket(bracketData, yearsToInflate, inflation) {
let updatedBracket = JSON.parse(JSON.stringify(bracketData));
const updatedBracket = JSON.parse(JSON.stringify(bracketData));

for (let i = 0; i < bracketData.brackets.length; i++) {
updatedBracket.brackets[i] = CanadianIncomeCalculator.futureValue(bracketData.brackets[i], 1, inflation, yearsToInflate);
Expand Down
5 changes: 4 additions & 1 deletion src/CanadianTaxes.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ class CanadianTaxRates {

}

/**
* @classdesc - All relevant Ontario tax rates for indicated tax year.
*/
class OntarioTaxRates {
constructor() {

Expand Down Expand Up @@ -471,7 +474,7 @@ class CanadianIncomeCalculator {
* @param {Number} inflation
*/
static inflateBracket(bracketData, yearsToInflate, inflation) {
let updatedBracket = JSON.parse(JSON.stringify(bracketData));
const updatedBracket = JSON.parse(JSON.stringify(bracketData));

for (let i = 0; i < bracketData.brackets.length; i++) {
updatedBracket.brackets[i] = CanadianIncomeCalculator.futureValue(bracketData.brackets[i], 1, inflation, yearsToInflate);
Expand Down

0 comments on commit 1398c38

Please sign in to comment.