refactor: Remove unused variable and for loop
Remove an unnecessary instruction (for loop over one item) and an unused variable