Skip to content
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

Fix issues found by PVS-Studio static analyzer #7 #34

Merged
merged 18 commits into from
Nov 27, 2023

Conversation

dimhotepus
Copy link
Contributor

@dimhotepus dimhotepus commented Nov 26, 2023

@dimhotepus dimhotepus changed the title PVS-Studio fixes #6 Fix issues found by PVS-Studio static analyzer #7 Nov 26, 2023
Rtp/RtpClient.cs Outdated Show resolved Hide resolved
Fixed conditions in 2 places.

Signed-off-by: Julius R Friedman <juliusfriedman@users.noreply.github.com>
@juliusfriedman
Copy link
Owner

juliusfriedman commented Nov 27, 2023

I edited the file in the places where we should change the checks, The build is failing because I missed a using statement, but then I realized I should confirm with you if you want to use the long way of calling the extension or the shortway

e.g. socket.IsNullOrDisposed() is false OR SocketExtensions.IsNullOrDisposed(socket) is false

Please let me know or I will fix it up asap!

Thanks again for your contributions!

Added using.

Signed-off-by: Julius R Friedman <juliusfriedman@users.noreply.github.com>
@juliusfriedman
Copy link
Owner

I added the using Media.Common.Extensions.Socket; and kept it the short way for now. I will merge once CI completes.

Thank you!!!

@juliusfriedman
Copy link
Owner

Changes LGTM. Thanks for your contributions!

@juliusfriedman juliusfriedman merged commit 07a9fd8 into juliusfriedman:master Nov 27, 2023
3 checks passed
@dimhotepus dimhotepus deleted the pvs-studio-fixes branch November 27, 2023 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants