@@ -44,15 +44,15 @@ function createService(serviceName) {
44
44
/**
45
45
* Returns the redirect URI that will be used for a given script. Often this URI
46
46
* needs to be entered into a configuration screen of your OAuth provider.
47
- * @param {string } [ optScriptId] The script ID of your script, which can be
47
+ * @param {string= } optScriptId The script ID of your script, which can be
48
48
* found in the Script Editor UI under "File > Project properties". Defaults
49
49
* to the script ID of the script being executed.
50
50
* @return {string } The redirect URI.
51
51
*/
52
52
function getRedirectUri ( optScriptId ) {
53
53
var scriptId = optScriptId || ScriptApp . getScriptId ( ) ;
54
54
return 'https://script.google.com/macros/d/' + encodeURIComponent ( scriptId ) +
55
- '/usercallback' ;
55
+ '/usercallback' ;
56
56
}
57
57
58
58
/**
@@ -65,12 +65,12 @@ function getRedirectUri(optScriptId) {
65
65
*/
66
66
function getServiceNames ( propertyStore ) {
67
67
var props = propertyStore . getProperties ( ) ;
68
- return Object . keys ( props ) . filter ( function ( key ) {
68
+ return Object . keys ( props ) . filter ( function ( key ) {
69
69
var parts = key . split ( '.' ) ;
70
70
return key . indexOf ( STORAGE_PREFIX_ ) == 0 && parts . length > 1 && parts [ 1 ] ;
71
- } ) . map ( function ( key ) {
71
+ } ) . map ( function ( key ) {
72
72
return key . split ( '.' ) [ 1 ] ;
73
- } ) . reduce ( function ( result , key ) {
73
+ } ) . reduce ( function ( result , key ) {
74
74
if ( result . indexOf ( key ) < 0 ) {
75
75
result . push ( key ) ;
76
76
}
0 commit comments