fix linter for internal api api.go
What does this MR do and why?
Related: gitlab#437332 (closed)
Task: gitlab#437333 (closed)
Fix linter issues for internal/api/api.go
How to set up and validate locally
N/A - lint changes only
Edited by Terri Chu