Senior developer investigating my code for a bug