MQTTnet
MQTTnet copied to clipboard
Fix comment typos/text, refactor if-else chains to switch statements, optimize return statements, and invert conditional logic
This pull request focuses solely on minor yet effective tweaks aimed at bolstering the readability. Key Updates:
Corrected typos within code comments. Transitioned from some if-else to switch statements. Refined return statements for straightforward execution paths. Streamlined conditional logic by inverting some if statements.
@dotnet-policy-service agree
@wilari932 Usually I do not accept such PR because changing the code style has often no benefit and depends only on personal preferences. But since it also contains type fixes, I will still accept it.
But I made some small adjustments. If you agree I will merge the PR.