Skip to content

Commit 7692018

Browse files
committed
Minor reformatting
1 parent d4fdd51 commit 7692018

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/streaming/protection/controllers/ProtectionController.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,13 +259,19 @@ function ProtectionController(config) {
259259
* @private
260260
*/
261261
function _acquireCertificateFromManifest() {
262-
if (!selectedKeySystem) { return; }
262+
if (!selectedKeySystem) {
263+
return;
264+
}
263265
const ksString = selectedKeySystem.systemString;
264266
const cacheEntry = certificateCache.get(ksString);
265-
if (cacheEntry && (cacheEntry.applied || cacheEntry.inProgress)) { return; }
267+
if (cacheEntry && (cacheEntry.applied || cacheEntry.inProgress)) {
268+
return;
269+
}
266270
// Gather certUrls from collected mediaInfoArr contentProtection entries matching this key system
267271
const certCandidates = _collectCertificateUrlsForSelectedKeySystem();
268-
if (!certCandidates.length) { return; }
272+
if (!certCandidates.length) {
273+
return;
274+
}
269275
logger.debug('DRM: Found ' + certCandidates.length + ' certificate candidate(s) for ' + ksString + '. Starting acquisition.');
270276
const protData = _getProtDataForKeySystem(selectedKeySystem) || {};
271277
const entry = cacheEntry || { applied: false, inProgress: true, attempts: 0 };

0 commit comments

Comments
 (0)