Skip to content

Commit

Permalink
refactor: do not log about no lang
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalygashkov committed Apr 10, 2024
1 parent 0028b14 commit fe7fad8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/dash.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,10 @@ const parseLanguage = (representation, adaptationSet, fallbackLanguage) => {
language = value;
continue;
}
if (!language) console.log('Language information could not be derived from a Representation.');
// TODO: Throw error if language not found
if (!language) {
// Language information could not be derived from a Representation.
// TODO: Throw error if language not found
}
return language;
};

Expand Down

0 comments on commit fe7fad8

Please sign in to comment.