]> git.deb.at Git - rhonda/impostor.git/commit
Refactor if statements to be more vertically dense
authorminiduikboot <mini@duikbo.at>
Sat, 27 Apr 2024 14:45:15 +0000 (16:45 +0200)
committerminiduikboot <mini@duikbo.at>
Sat, 27 Apr 2024 14:45:15 +0000 (16:45 +0200)
commit58540002208dd848ca8f3afcd0ba5919d6967aa3
tree74b40977c15eec8728da3cb97732b3ab12ecc603
parentef022b04e400c618d87009ca730f9ce9621c645c
Refactor if statements to be more vertically dense

Multiple guard clauses make the file harder to navigate, so put them in
a single guard clause with one validation rule per line. Some statements
in the file were already set up like this, so this commit makes it consistent
src/Impostor.Server/Net/Inner/Objects/InnerPlayerControl.cs