Currently the sync in connect_nodes mentions the version and verack message types, but only checks the verack. Neither check is required, as the pong check implies both. In case of failure, the debug log will have to be consulted anyway, so the redundant check doesn’t add value.
Also clarify in the comments that the goal is to check the flag fSuccessfullyConnected indirectly.