Re: [PATCH 3/5] virsh: domain: change the way functions return bool value

2021-09-23 Thread Peter Krempa
On Thu, Sep 23, 2021 at 17:08:02 +0200, Kristina Hanicova wrote: > This patch changes the way functions return bool value from > pattern: > > if (functionCall() < 0) > return false; > > return true; > > into a more readable and modern way of direct return: > > return

[PATCH 3/5] virsh: domain: change the way functions return bool value

2021-09-23 Thread Kristina Hanicova
This patch changes the way functions return bool value from pattern: if (functionCall() < 0) return false; return true; into a more readable and modern way of direct return: return functionCall() == 0; I know that not everybody will agree this is more readable so I am open