Skip to content

Commit

Permalink
Remove useless "if"
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Dec 31, 2024
1 parent 5b8714b commit d66f352
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions lib/drm/drm_engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -2653,14 +2653,12 @@ shaka.drm.DrmEngine = class {
}
const clearKeyDrmInfo =
shaka.util.ManifestParserUtils.createDrmInfoFromClearKeys(clearKeys);
if (clearKeyDrmInfo) {
for (const variant of variants) {
if (variant.video) {
variant.video.drmInfos = [clearKeyDrmInfo];
}
if (variant.audio) {
variant.audio.drmInfos = [clearKeyDrmInfo];
}
for (const variant of variants) {
if (variant.video) {
variant.video.drmInfos = [clearKeyDrmInfo];
}
if (variant.audio) {
variant.audio.drmInfos = [clearKeyDrmInfo];
}
}
}
Expand Down

0 comments on commit d66f352

Please sign in to comment.