From 56c0d7bd4d5505cdd1cd0652698f739711157ae1 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Mon, 13 Jan 2020 16:38:12 +0000 Subject: [PATCH] Fix linting issues --- src/js/plyr.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/plyr.js b/src/js/plyr.js index b73b5357..04f1b873 100644 --- a/src/js/plyr.js +++ b/src/js/plyr.js @@ -368,7 +368,7 @@ class Plyr { */ pause() { if (!this.playing || !is.function(this.media.pause)) { - return; + return null; } return this.media.pause(); @@ -412,9 +412,9 @@ class Plyr { if (toggle) { return this.play(); - } else { - return this.pause(); } + + return this.pause(); } /**