diff --git a/src/declarations.ts b/src/declarations.ts index b972e88..1886070 100644 --- a/src/declarations.ts +++ b/src/declarations.ts @@ -8,9 +8,7 @@ declare module 'pick-deep' { export = pickDeep; } -declare module 'pino-multi-stream' { - -} +declare module 'pino-multi-stream' {} // there is a @typed/pino-multi-stream package, but it has wrong type in its Streams definition. So until its fixed, we use this /* declare module 'pino-multi-stream' { diff --git a/src/utils.ts b/src/utils.ts index 9676ca5..46d157d 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -4,7 +4,10 @@ import isEmpty = require('lodash.isempty'); import omit = require('omit-deep'); const removeEmpty = (obj: Dictionary): object => - omit(obj, Object.keys(obj).filter(key => obj[key] === undefined || isEmpty(obj[key]))); + omit( + obj, + Object.keys(obj).filter(key => obj[key] === undefined || isEmpty(obj[key])) + ); const matchPath = (pattern: RegExp) => (req: Request): boolean => req.originalUrl.match(pattern) !== null;