aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plyr.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2020-01-13 16:38:12 +0000
committerSam Potts <sam@potts.es>2020-01-13 16:38:12 +0000
commit56c0d7bd4d5505cdd1cd0652698f739711157ae1 (patch)
treee315f92d75e19182147ccbd4ca31be8d25eeb47a /src/js/plyr.js
parentd00d31961ef7fc51a4e253431e8535866d6dd921 (diff)
downloadplyr-56c0d7bd4d5505cdd1cd0652698f739711157ae1.tar.lz
plyr-56c0d7bd4d5505cdd1cd0652698f739711157ae1.tar.xz
plyr-56c0d7bd4d5505cdd1cd0652698f739711157ae1.zip
Fix linting issues
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r--src/js/plyr.js6
1 files 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();
}
/**