From 3235779d659422421dc3ef7f1daa42029ed66966 Mon Sep 17 00:00:00 2001 From: Bond_009 Date: Fri, 30 Aug 2024 20:32:53 +0200 Subject: [PATCH] Make linter happy --- src/components/itemMediaInfo/itemMediaInfo.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/itemMediaInfo/itemMediaInfo.js b/src/components/itemMediaInfo/itemMediaInfo.js index 63ea8f8597a..844caa7784b 100644 --- a/src/components/itemMediaInfo/itemMediaInfo.js +++ b/src/components/itemMediaInfo/itemMediaInfo.js @@ -107,10 +107,8 @@ function getMediaSourceHtml(user, item, version) { if (stream.CodecTag) { attributes.push(createAttribute(globalize.translate('MediaInfoCodecTag'), stream.CodecTag)); } - if (stream.Type === 'Video') { - if (stream.IsAVC != null) { - attributes.push(createAttribute('AVC', (stream.IsAVC ? 'Yes' : 'No'))); - } + if (stream.Type === 'Video' && stream.IsAVC != null) { + attributes.push(createAttribute('AVC', (stream.IsAVC ? 'Yes' : 'No'))); } if (stream.Profile) { attributes.push(createAttribute(globalize.translate('MediaInfoProfile'), stream.Profile));