Fix sonarjs no-collapsible-if

This commit is contained in:
Bill Thornton
2022-10-03 14:22:02 -04:00
parent ccdbf0bfc3
commit 1f4e65822b
33 changed files with 330 additions and 473 deletions
+2 -4
View File
@@ -333,10 +333,8 @@ class YoutubePlayer {
setVolume(val) {
const currentYoutubePlayer = this.currentYoutubePlayer;
if (currentYoutubePlayer) {
if (val != null) {
currentYoutubePlayer.setVolume(val);
}
if (currentYoutubePlayer && val != null) {
currentYoutubePlayer.setVolume(val);
}
}
getVolume() {