fix: sonar issue (missing semicolon and unused variable)