Skip to content

Commit

Permalink
remove redundant operator
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanTGold committed Nov 9, 2021
1 parent 68577f6 commit 34677cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ export default class Player extends FakeEventTarget {
*/
setSourcesMetadata(sourcesMetadata: PKMetadataConfigObject): void {
if (this._sources) {
if (!this?._sources?.metadata) {
if (!this._sources.metadata) {
this._sources.metadata = {};
}
Utils.Object.mergeDeep(this._sources.metadata, sourcesMetadata);
Expand Down

0 comments on commit 34677cc

Please sign in to comment.