From a08dc5ef647b185fa28459b860fbbed18efd3239 Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Sun, 18 Feb 2018 21:21:42 +0100 Subject: [PATCH] ESLint fix for playCatchPromise method --- src/sound/html5/HTML5AudioSound.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sound/html5/HTML5AudioSound.js b/src/sound/html5/HTML5AudioSound.js index 3de789e30..173b265b0 100644 --- a/src/sound/html5/HTML5AudioSound.js +++ b/src/sound/html5/HTML5AudioSound.js @@ -338,10 +338,10 @@ var HTML5AudioSound = new Class({ playCatchPromise: function () { var playPromise = this.audio.play(); - if (playPromise) { - playPromise.catch(function () { }); + // eslint-disable-next-line no-unused-vars + playPromise.catch(function (reason) { }); } },