From: Laurent Mazet Date: Wed, 6 May 2020 23:45:20 +0000 (+0200) Subject: last fix for eslint errors X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=0adff408146644487df9e2b89e46e9632fcc4100;p=trivabble.git last fix for eslint errors --- diff --git a/public/trivabble.js b/public/trivabble.js index ca2ad9f..7e8a9c9 100644 --- a/public/trivabble.js +++ b/public/trivabble.js @@ -1531,10 +1531,8 @@ select.remove(i); } - for (const key in langName) { - if (Object.prototype.isPrototypeOf.call(langName, key)) { - select.add(new Option(_(langName[key]), key)); - } + for (const key in langName) {/* eslint-disable-line guard-for-in */ + select.add(new Option(_(langName[key]), key)); } Array.prototype.sort.call(select.options,