function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
EdCodeEdCode 

Error: "Unexpected token" - Can you spot the error in my apex trigger?

Hi!

Based on the error specified at the bottom of the code, I am looking at line 21 but...it seems correct to me.

Can you pls help me find/correct this error?

User-added image
Thank you very much.
Best Answer chosen by EdCode
EdCodeEdCode
I have resolved it by just closing VSC and re-opening.
I works now.

All Answers

EdCodeEdCode
I have resolved it by just closing VSC and re-opening.
I works now.
This was selected as the best answer
AbhishekAbhishek (Salesforce Developers) 
Thanks, Great news Ted.


Close your query by marking it as the Best answer so that it can help others in the future. It will help to keep this community clean.

Regards,
Salesforce Support.