Avoid "cannot return outside of a subroutine" warning in cloud-sync