Skip to content

Commit

Permalink
removing explicit typing when can be inferred from default value
Browse files Browse the repository at this point in the history
  • Loading branch information
mayaraman19 committed Sep 21, 2023
1 parent debb4ee commit a0c937d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/persistence/src/services/connector/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const db = async () => {
};

// all docs should be inserted with the buildId for the run.
export const insert = async (docs: any[], collection: string, buildId: ObjectId, printTime: boolean = false) => {
export const insert = async (docs: any[], collection: string, buildId: ObjectId, printTime = false) => {
const timerLabel = `insert - ${collection}`;
if (printTime) console.time(timerLabel);
const insertSession = await db();
Expand Down

0 comments on commit a0c937d

Please sign in to comment.