File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -105,8 +105,8 @@ class GitHub extends Release {
105105 const { data } = await this . client . users . getAuthenticated ( ) ;
106106 this . setContext ( { username : data . login } ) ;
107107 return true ;
108- } catch ( error ) {
109- this . debug ( error ) ;
108+ } catch ( err ) {
109+ this . debug ( err ) ;
110110 return false ;
111111 }
112112 }
@@ -120,8 +120,8 @@ class GitHub extends Release {
120120 this . log . verbose ( `octokit repos#checkCollaborator (${ username } )` ) ;
121121 await this . client . repos . checkCollaborator ( options ) ;
122122 return true ;
123- } catch ( error ) {
124- this . debug ( error ) ;
123+ } catch ( err ) {
124+ this . debug ( err ) ;
125125 return false ;
126126 }
127127 }
Original file line number Diff line number Diff line change @@ -78,12 +78,12 @@ class Shell {
7878 this . log . verbose ( stdout , { isExternal } ) ;
7979 debug ( { command, options, stdout, stderr } ) ;
8080 return Promise . resolve ( stdout || stderr ) ;
81- } catch ( error ) {
82- if ( error . stdout ) {
83- this . log . log ( `\n${ error . stdout } ` ) ;
81+ } catch ( err ) {
82+ if ( err . stdout ) {
83+ this . log . log ( `\n${ err . stdout } ` ) ;
8484 }
85- debug ( { error } ) ;
86- return Promise . reject ( new Error ( error . stderr || error . message ) ) ;
85+ debug ( err ) ;
86+ return Promise . reject ( new Error ( err . stderr || err . message ) ) ;
8787 }
8888 }
8989}
You can’t perform that action at this time.
0 commit comments