From bdcd98f4a7d5fb8e2545dc6b4fb618de8585db6d Mon Sep 17 00:00:00 2001 From: Hashen <37979557+Hashen110@users.noreply.github.com> Date: Tue, 19 Apr 2022 17:29:29 +0530 Subject: [PATCH] remove redundant local variable (#2467) --- src/js/plyr.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/js/plyr.js b/src/js/plyr.js index 55471441..d272383b 100644 --- a/src/js/plyr.js +++ b/src/js/plyr.js @@ -933,8 +933,7 @@ class Plyr { * @param {Boolean} input - Whether to autoplay or not */ set autoplay(input) { - const toggle = is.boolean(input) ? input : this.config.autoplay; - this.config.autoplay = toggle; + this.config.autoplay = is.boolean(input) ? input : this.config.autoplay; } /**