Learn more about cloning repositories
You have read-only access
Both function share the same code, refactor.