Here is my suggestion based on the code under review on Gerrit. This should work correctly for all cases, or at least all unit tests pass...
P.S.: I have no idea what the procedure is to contribute these suggestions on a WIP through Gerrit, I found no mention of it on the Developer's Guide... So I decided to attach the patch here!
Here is my suggestion based on the code under review on Gerrit. This should work correctly for all cases, or at least all unit tests pass...
P.S.: I have no idea what the procedure is to contribute these suggestions on a WIP through Gerrit, I found no mention of it on the Developer's Guide... So I decided to attach the patch here!