-
Notifications
You must be signed in to change notification settings - Fork 2k
Updated to ES6 #240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated to ES6 #240
Conversation
Update code with comments and ES6 features
sqrrrl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few minor changes, otherwise looks good.
Priyanka patch
Added try-catch used let and const
drive/quickstart/quickstart.gs
Outdated
| } | ||
| } | ||
| catch(err){ | ||
| Logger.log(err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not critical, but here and elsewhere where catching exceptions for illustrative purposes to include a comment indicating two things:
- The developer should likely modify the code
- What is potentially failing
This is particularly important if the try block covers a large section of code as it's not always obvious where the failure might come from. Doesn't have to be a lengthy explanation, can be as short as "// TODO(developer) - Handle files.list() exceptions here"
Update advanced gmail.gs file
Added try-catch in quickstart
Co-authored-by: Priyankarp24 <savat@google.com>
Updated to ES6
Added try catch
Modified Region tag
Modified comments