Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
youngcw committed Mar 1, 2025
1 parent c9adf01 commit 00d987f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/loot-core/src/server/budget/categoryTemplate.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// @ts-strict-ignore

import { numberSortComparer } from '@rschedule/core';
import * as monthUtils from '../../shared/months';
import { amountToInteger, numberFormats } from '../../shared/util';
import { amountToInteger } from '../../shared/util';
import { CategoryEntity } from '../../types/models';
import * as db from '../db';

Expand Down Expand Up @@ -574,7 +573,7 @@ export class CategoryTemplate {

private runBy(): number {
const byTemplates = this.templates.filter(t => t.type === 'by');
let savedInfo = [];
const savedInfo = [];
let totalNeeded = 0;
let shortNumMonths;
//find shortest time period
Expand All @@ -598,8 +597,9 @@ export class CategoryTemplate {
);
}
savedInfo.push({ numMonths, period });
if (numMonths < shortNumMonths || !shortNumMonths)
if (numMonths < shortNumMonths || !shortNumMonths) {
shortNumMonths = numMonths;
}
}

// calculate needed funds per template
Expand Down

0 comments on commit 00d987f

Please sign in to comment.