[PATCH v2 1/2] domain_conf: remove else after return / goto

Martin Kletzander mkletzan at redhat.com
Thu Jul 21 12:58:24 UTC 2022


On Thu, Jul 21, 2022 at 01:30:44PM +0200, Kristina Hanicova wrote:
>The else branches are redundant because the execution will never
>reach them if the conditions in the previous 'if' branches are
>true.
>
>I think this looks cleaner and is more readable, because having
>'else' branch indicates that no return / break / goto is in the
>previous branch and the function can reach it.
>
>Signed-off-by: Kristina Hanicova <khanicov at redhat.com>

Reviewed-by: Martin Kletzander <mkletzan at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20220721/764bf79c/attachment.sig>


More information about the libvir-list mailing list