codefix: Removed enumerate since index is not used

Repatched to use vec[idx] compared to vec.get(idx)

Signed-off-by: Aravinda VK <mail@aravindavk.in>