Skip to content

Unnecessary call to Utilities.formatString #145

@tdelmas

Description

@tdelmas

https://github.com/gsuitedevs/apps-script-oauth2/blob/master/src/OAuth2.js#L67

return Utilities.formatString('https://script.google.com/macros/d/%s/usercallback', scriptId);

I think that calls to Utilities.formatString should simply be replaced by:

return 'https://script.google.com/macros/d/'+scriptId+'/usercallback';

Or, if we want to be really conservative:

return 'https://script.google.com/macros/d/'+encodeURIComponent(scriptId)+'/usercallback';

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions