ok, thanks a lot for the clarification, @arnaud.giuliani!
I was going nuts because I thought I misunderstood the code.
Other implementations I have seen uses the repository as a single source of truth and lets that decide if it should get the local or remote data. I was expecting that when I read the code 🙂