remove redundant local variable (#2467)

This commit is contained in:
Hashen
2022-04-19 17:29:29 +05:30
committed by GitHub
parent 01417f958a
commit bdcd98f4a7

View File

@ -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;
}
/**