From 93f7f00c956c14620ef031626f124b57397ca867 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 9 Oct 2019 17:22:22 -0400 Subject: Run deno_std tests in github actions --- std/log/mod.ts | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'std/log/mod.ts') diff --git a/std/log/mod.ts b/std/log/mod.ts index 3f34d7f1d..cb166376e 100644 --- a/std/log/mod.ts +++ b/std/log/mod.ts @@ -80,9 +80,11 @@ export async function setup(config: LogConfig): Promise { }; // tear down existing handlers - state.handlers.forEach((handler): void => { - handler.destroy(); - }); + state.handlers.forEach( + (handler): void => { + handler.destroy(); + } + ); state.handlers.clear(); // setup handlers @@ -104,11 +106,13 @@ export async function setup(config: LogConfig): Promise { const handlerNames = loggerConfig.handlers || []; const handlers: BaseHandler[] = []; - handlerNames.forEach((handlerName): void => { - if (state.handlers.has(handlerName)) { - handlers.push(state.handlers.get(handlerName)!); + handlerNames.forEach( + (handlerName): void => { + if (state.handlers.has(handlerName)) { + handlers.push(state.handlers.get(handlerName)!); + } } - }); + ); const levelName = loggerConfig.level || DEFAULT_LEVEL; const logger = new Logger(levelName, handlers); -- cgit v1.2.3