This code gives the error "invalid expression term '}'" on the left curly brace after the return. There is no error when I leave out the curly braces around the return. I thought the curly braces were optional. Google shows nothing for the full phrase "invalid expression term '}'" (at least in the first several pages). No other errors on this routine.
protected void TestFunction(Int64 varParentID)
{
Int64 NextChild = 0;
NextChild = FindFirstChild(varParentID);
if (NextChild == -1) {return};
}