-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Migrate modules/statistics/RTPStatsCollector.ts
#2863
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Hi, thanks for your contribution! |
| */ | ||
| setLoss(loss) { | ||
| this.loss = loss || {}; | ||
| setLoss(loss: ILoss | undefined): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see undefined being passed to this function. You should be able to drop undefined here and also drop default value assignment in the next line.
| */ | ||
| setResolution(resolution) { | ||
| this.resolution = resolution || {}; | ||
| setResolution(resolution?: IResolution): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
| setEncodeStats(encodeStats) { | ||
| this.encodeStats = encodeStats || {}; | ||
| setEncodeStats(encodeStats?: Map<number, IEncodeStats>): void { | ||
| this.encodeStats = encodeStats || undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto, lets make the parameter mandatory.
|
Jenkins test this please. |
d7494e1 to
314f6a3
Compare
|
Jenkins test this please. |
4f71c61 to
73355d1
Compare
|
changes dine and rebased please take a look |
|
Jenkins test this please. |
73355d1 to
bc8dce4
Compare
No description provided.