MQTTnet icon indicating copy to clipboard operation
MQTTnet copied to clipboard

Fix comment typos/text, refactor if-else chains to switch statements, optimize return statements, and invert conditional logic

Open wilari932 opened this issue 1 year ago • 1 comments

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.

wilari932 avatar Apr 03 '24 21:04 wilari932

@dotnet-policy-service agree

wilari932 avatar Apr 03 '24 22:04 wilari932

@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.

chkr1011 avatar May 07 '24 17:05 chkr1011