Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 9470836

Browse files
authored
Merge pull request #29 from AckeeCZ/style/fix-fromatting
🎨 Fix formatting
2 parents f497683 + e32b79f commit 9470836

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/declarations.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ declare module 'pick-deep' {
88
export = pickDeep;
99
}
1010

11-
declare module 'pino-multi-stream' {
12-
13-
}
11+
declare module 'pino-multi-stream' {}
1412

1513
// there is a @typed/pino-multi-stream package, but it has wrong type in its Streams definition. So until its fixed, we use this
1614
/* declare module 'pino-multi-stream' {

src/utils.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ import isEmpty = require('lodash.isempty');
44
import omit = require('omit-deep');
55

66
const removeEmpty = (obj: Dictionary<any>): object =>
7-
omit(obj, Object.keys(obj).filter(key => obj[key] === undefined || isEmpty(obj[key])));
7+
omit(
8+
obj,
9+
Object.keys(obj).filter(key => obj[key] === undefined || isEmpty(obj[key]))
10+
);
811

912
const matchPath = (pattern: RegExp) => (req: Request): boolean => req.originalUrl.match(pattern) !== null;
1013

0 commit comments

Comments
 (0)