URL: https://github.com/SSSD/sssd/pull/1002
Title: #1002: SBUS: fixed off-by-one error" in sbus_auto_reconnect()

alexey-tikhonov commented:
"""
Hi Michal,

> Would it not be better to use goto done and increase the conn->retries++ at 
> the end of the function (before leaving?)
> 
> ```
> done:
>     conn->retries++;
>     return ret;
> ```
> 
> I do not insist on this, but at least for me the code reads more natural that 
> way. What do you think?

This is 1-16 branch, and my understanding is that at this moment we only want 
bug fixes here, not general improvements / code refactoring. Thus I think it is 
preferable to keep patch as small as possible.

Regarding the substance of your question... I personally do not see great 
advantage in using "goto" here but it is really matter of taste, I think.

So I would prefer to keep patch as it is - small one-liner.
"""

See the full comment at 
https://github.com/SSSD/sssd/pull/1002#issuecomment-598666897
_______________________________________________
sssd-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedorahosted.org/archives/list/[email protected]

Reply via email to