use/remove unused vars

This commit is contained in:
zkldi
2021-05-10 06:38:10 +01:00
parent 98ad713632
commit 56dab34c11
7 changed files with 13 additions and 9 deletions
+1 -6
View File
@@ -1,9 +1,4 @@
import {
MilestoneDocument,
UserMilestoneDocument,
integer,
GoalImportInfo,
} from "kamaitachi-common";
import { MilestoneDocument, integer, GoalImportInfo } from "kamaitachi-common";
/**
* Processes and updates a user's milestones from their Goal Import Info (i.e. what is returned
@@ -1,4 +1,4 @@
import { AnyChartDocument, ChartDocument, ESDCore, integer } from "kamaitachi-common";
import { AnyChartDocument, ESDCore, integer } from "kamaitachi-common";
import { Logger } from "winston";
import db from "../../../db/db";
import { DryScore } from "../../../types";
@@ -1,7 +1,6 @@
import t from "tap";
import { CreateImportLoggerAndID } from "./import-logger";
import { PublicUserDocument } from "kamaitachi-common";
import { Logger } from "winston";
t.test("#CreateImportLoggerAndID", (t) => {
let { importID, logger } = CreateImportLoggerAndID(
@@ -86,6 +86,7 @@ export async function CalculateUGSClasses(
}
if (ImportTypeClassResolveFn) {
logger.debug(`Applying ClassResolveFn for ${game} ${playtype}.`);
classes = deepmerge(
classes,
await ImportTypeClassResolveFn(game, playtype, userID, customRatings)
@@ -40,6 +40,10 @@ export async function CalculateRatings(
),
]);
logger.debug(
`Found ${bestRating.length} best rating scores and ${bestLampRating.length} bestLampRating scores.`
);
let rating = bestRating.reduce((a, r) => a + r.calculatedData.rating, 0) / SCORE_COUNT;
let lampRating = bestLampRating.reduce((a, r) => a + r.calculatedData.rating, 0) / SCORE_COUNT;
@@ -369,4 +369,10 @@ t.test("#EamScoreConverterWrapper", async (t) => {
t.end();
});
t.todo("#ConverterFn", async (t) => {
t.beforeEach(ResetDBState);
t.end();
});
t.teardown(CloseMongoConnection);
-1
View File
@@ -7,7 +7,6 @@ import {
UserGoalDocument,
FolderDocument,
MilestoneDocument,
UserMilestoneDocument,
} from "kamaitachi-common";
import path from "path";
import { DryScore } from "../types";