File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ function getAccessToken(oAuth2Client, callback) {
7575 oAuth2Client . setCredentials ( token ) ;
7676 // Store the token to disk for later program executions
7777 fs . writeFile ( TOKEN_PATH , JSON . stringify ( token ) , ( err ) => {
78- if ( err ) console . error ( err ) ;
78+ if ( err ) return console . error ( err ) ;
7979 console . log ( 'Token stored to' , TOKEN_PATH ) ;
8080 } ) ;
8181 callback ( oAuth2Client ) ;
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ function getAccessToken(oAuth2Client, callback) {
7575 oAuth2Client . setCredentials ( token ) ;
7676 // Store the token to disk for later program executions
7777 fs . writeFile ( TOKEN_PATH , JSON . stringify ( token ) , ( err ) => {
78- if ( err ) console . error ( err ) ;
78+ if ( err ) return console . error ( err ) ;
7979 console . log ( 'Token stored to' , TOKEN_PATH ) ;
8080 } ) ;
8181 callback ( oAuth2Client ) ;
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ function getNewToken(oAuth2Client, callback) {
7575 oAuth2Client . setCredentials ( token ) ;
7676 // Store the token to disk for later program executions
7777 fs . writeFile ( TOKEN_PATH , JSON . stringify ( token ) , ( err ) => {
78- if ( err ) console . error ( err ) ;
78+ if ( err ) return console . error ( err ) ;
7979 console . log ( 'Token stored to' , TOKEN_PATH ) ;
8080 } ) ;
8181 callback ( oAuth2Client ) ;
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ function getNewToken(oAuth2Client, callback) {
7676 oAuth2Client . setCredentials ( token ) ;
7777 // Store the token to disk for later program executions
7878 fs . writeFile ( TOKEN_PATH , JSON . stringify ( token ) , ( err ) => {
79- if ( err ) console . error ( err ) ;
79+ if ( err ) return console . error ( err ) ;
8080 console . log ( 'Token stored to' , TOKEN_PATH ) ;
8181 } ) ;
8282 callback ( oAuth2Client ) ;
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ function getNewToken(oAuth2Client, callback) {
7777 oAuth2Client . setCredentials ( token ) ;
7878 // Store the token to disk for later program executions
7979 fs . writeFile ( TOKEN_PATH , JSON . stringify ( token ) , ( err ) => {
80- if ( err ) console . error ( err ) ;
80+ if ( err ) return console . error ( err ) ;
8181 console . log ( 'Token stored to' , TOKEN_PATH ) ;
8282 } ) ;
8383 callback ( oAuth2Client ) ;
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ function getAccessToken(oAuth2Client, callback) {
7575 oAuth2Client . setCredentials ( token ) ;
7676 // Store the token to disk for later program executions
7777 fs . writeFile ( TOKEN_PATH , JSON . stringify ( token ) , ( err ) => {
78- if ( err ) console . error ( err ) ;
78+ if ( err ) return console . error ( err ) ;
7979 console . log ( 'Token stored to' , TOKEN_PATH ) ;
8080 } ) ;
8181 callback ( oAuth2Client ) ;
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ function getNewToken(oAuth2Client, callback) {
7575 oAuth2Client . setCredentials ( token ) ;
7676 // Store the token to disk for later program executions
7777 fs . writeFile ( TOKEN_PATH , JSON . stringify ( token ) , ( err ) => {
78- if ( err ) console . error ( err ) ;
78+ if ( err ) return console . error ( err ) ;
7979 console . log ( 'Token stored to' , TOKEN_PATH ) ;
8080 } ) ;
8181 callback ( oAuth2Client ) ;
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ function getNewToken(oAuth2Client, callback) {
7575 oAuth2Client . setCredentials ( token ) ;
7676 // Store the token to disk for later program executions
7777 fs . writeFile ( TOKEN_PATH , JSON . stringify ( token ) , ( err ) => {
78- if ( err ) console . error ( err ) ;
78+ if ( err ) return console . error ( err ) ;
7979 console . log ( 'Token stored to' , TOKEN_PATH ) ;
8080 } ) ;
8181 callback ( oAuth2Client ) ;
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ function getNewToken(oAuth2Client, callback) {
7575 oAuth2Client . setCredentials ( token ) ;
7676 // Store the token to disk for later program executions
7777 fs . writeFile ( TOKEN_PATH , JSON . stringify ( token ) , ( err ) => {
78- if ( err ) console . error ( err ) ;
78+ if ( err ) return console . error ( err ) ;
7979 console . log ( 'Token stored to' , TOKEN_PATH ) ;
8080 } ) ;
8181 callback ( oAuth2Client ) ;
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ function getNewToken(oAuth2Client, callback) {
7575 oAuth2Client . setCredentials ( token ) ;
7676 // Store the token to disk for later program executions
7777 fs . writeFile ( TOKEN_PATH , JSON . stringify ( token ) , ( err ) => {
78- if ( err ) console . error ( err ) ;
78+ if ( err ) return console . error ( err ) ;
7979 console . log ( 'Token stored to' , TOKEN_PATH ) ;
8080 } ) ;
8181 callback ( oAuth2Client ) ;
You can’t perform that action at this time.
0 commit comments