Skip to content

Commit

Permalink
style: fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ROpdebee committed Jun 9, 2023
1 parent 9e16f55 commit 5335048
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/logging/collectorSink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class CollectorSink implements LoggingSink {
.flatMap(({ level, message, timestamp, exception }) => {
const dateStr = new Date(timestamp).toISOString();
const lines = [`[${dateStr} - ${level}] ${message}`];
if (typeof exception !== 'undefined') lines.push(`${exception}`);
if (exception !== undefined) lines.push(`${exception}`);
return lines;
})
.join('\n');
Expand Down
1 change: 0 additions & 1 deletion src/lib/util/request/observers/loggingObserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export const loggingObserver: RequestObserver = {
LOGGER.debug(`${method} ${url} - SUCCESS (code ${response.status})`);
},
onFailed({ method, url, error }) {
// eslint-disable-next-line @typescript-eslint/no-base-to-string
LOGGER.debug(`${method} ${url} - FAILED (${error})`);
},
// istanbul ignore next: Unit tests don't have progress events.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/util/request/observers/recordingObserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,4 @@ export class RecordingObserver implements RequestObserver {
return domains;
}));
}
};
}

0 comments on commit 5335048

Please sign in to comment.