Skip to content

Commit

Permalink
fix syntax issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiAndreiev committed Aug 5, 2024
1 parent acdd28f commit 0085f15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/node/src/lib/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export function log(
req: ExtendedIncomingMessage,
res: ExtendedResponse,
group: GroupingObject,
options: Options = {}
options: Options = {},
) {
if (!readmeApiKey) throw new Error('You must provide your ReadMe API key');
if (!group) throw new Error('You must provide a group');
Expand Down Expand Up @@ -167,7 +167,7 @@ export function log(
);

queue.push(payload);
if (queue.length >= bufferLength) doSend(readmeApiKey, options, logger);
if (queue.length >= bufferLength) doSend(readmeApiKey, options);

cleanup(); // eslint-disable-line @typescript-eslint/no-use-before-define
}
Expand Down

0 comments on commit 0085f15

Please sign in to comment.