This shows how to connect two wall lights (or similar) so they both operate via same switch
Just because a cable runs from one light to the next that does not mean the lights are in series.