The good news is you're right, it makes no sense and that line is fine.
The bad news is this means there's an error elsewhere in your file, and that the debugger isn't going to help you.
My recommendation is to comment out that line and run it again, see where it puts the syntax error.