Skip to content

Commit 67c3863

Browse files
committed
Fix some lint issues
1 parent 581860d commit 67c3863

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/logger/src/logger.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,12 @@ export function setLogLevel(level: LogLevelString | LogLevel): void {
195195
export function setUserLogHandler(
196196
logCallback: LogCallback | null,
197197
options: LogOptions
198-
) {
198+
): void {
199199
if (typeof logCallback !== 'function') {
200200
console.warn('First argument to `onLog` must be a function.');
201201
return;
202202
}
203-
for (const index in instances) {
204-
const instance = instances[index];
203+
for (const instance of instances) {
205204
let threshhold = instance.logLevel;
206205
if (options && options.level) {
207206
threshhold = levelStringToEnum[options.level];

0 commit comments

Comments
 (0)