On Wed, Dec 13, 2017 at 6:54 PM, Eric Caruso <[email protected]> wrote:
> Thanks for catching these!
>
> On Wed, Dec 13, 2017 at 1:20 AM, Aleksander Morgado
> <[email protected]> wrote:
>> > +    MM_IFACE_MODEM_GET_INTERFACE (self)->check_for_sim_swap_finish (self, 
>> > res, &error);
>> > +    if (error) {
>>
>> This is not a big deal, but for methods returning a gboolean, it is assumed 
>> that error is set if they return FALSE, so you can just do:
>> if (!check_for_sim_swap_finish (self, res, &error)) {
>>     // process error
>> }
>>
>
> It looks like the surrounding code is not very consistent about this.
> For example, setup_flow_control_finish is a method returning gboolean
> but we check the error instead of the return value.
>
> Is this worth cleaning up in a future patch?

Not a big deal really. Didn't realize about the surrounding code not
doing that, and I wonder why I didn't do it myself :)

-- 
Aleksander
https://aleksander.es
_______________________________________________
ModemManager-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel

Reply via email to