I'd ride in the thru lane just as you did, but I'd be in the middle of the right wheel track, and the closer I get to the intersection the more towards the center of the lane I'd move, blocking the way of possible right hooks. UNLESS I was moving faster than traffic, then I'd move to the left lane to pass. That is assuming a green light. IF it was a red light I'd lane split to the front of the line.