]>
www.infradead.org Git - users/dwmw2/openconnect.git/commit
Squash two identical `if` branches
This fixes a DeepSource alert:
Branches of the `if` statement have similar implementation
For the highlighted `if` statements, all the `elif`/`else` branches have
the same body as `if`. It is recommended to refactor this snippet.
If the if-chain is performing the same action in every case, it shouldn't
be used there at all.
Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>