You did the right thing. I wouldn't have, but then I'm not that smart
I used to work for a motorcycle shop and was a state inspector there. It sure made it nice when the motorcycle cops recognized me when pulled over. If they wrote me a ticket and came in to the shop at a later date, I always went the extra mile and gave them special discounts but I also let them know they had written me a ticket.
I got pulled over one day and I mentioned I'd seen him in the shop. He pulled out his wallet checking how much money he had and started rattling off the list of parts he needed. After a minute he asked what I was doing. I said I was trying to find my insurance card. He said, oh... you're not getting a ticket. He was in the shop a couple hours later