From dcd01dd02530df0e799eb4227087680ffeb80d74 Mon Sep 17 00:00:00 2001 From: Vincent LE GOFF Date: Wed, 24 Apr 2019 13:41:23 +0200 Subject: Eslint fixes (denoland/deno_std#356) Make warnings fail Original: https://github.com/denoland/deno_std/commit/4543b563a9a01c8c168aafcbfd9d4634effba7fc --- toml/parser.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toml/parser.ts') diff --git a/toml/parser.ts b/toml/parser.ts index c29f5a761..c615c3c1e 100644 --- a/toml/parser.ts +++ b/toml/parser.ts @@ -399,12 +399,12 @@ class Dumper { const out = []; const props = Object.keys(obj); const propObj = props.filter( - e => + (e): boolean => (obj[e] instanceof Array && !this._isSimplySerializable(obj[e][0])) || !this._isSimplySerializable(obj[e]) ); const propPrim = props.filter( - e => + (e): boolean => !(obj[e] instanceof Array && !this._isSimplySerializable(obj[e][0])) && this._isSimplySerializable(obj[e]) ); -- cgit v1.2.3