]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vsh: vshCmddefHelp: Drop the unnecessary 'else' branch
authorErik Skultety <eskultet@redhat.com>
Thu, 15 Sep 2016 15:52:11 +0000 (17:52 +0200)
committerErik Skultety <eskultet@redhat.com>
Tue, 20 Sep 2016 13:05:31 +0000 (15:05 +0200)
commit9b86282ecdb1aaa55f33a9563c3276f17f7e60a3
treea910b564dedb238f3a367b131d696d2dc1289220
parentc91cddb6f714f4128d8a192cab1f42b00efe3672
vsh: vshCmddefHelp: Drop the unnecessary 'else' branch

If the initial check is true the function immediately returns so there's no
need to enclose the code following the check within an 'else' block.
Also, by removing the 'else' block, the declarations need to be moved to
beginning of the function block to conform with our guidelines.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
tools/vsh.c