File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export class MacCodacyCli extends CodacyCli {
4646 }
4747 }
4848
49- protected async hasIdentificationParams ( params : Record < string , string > = { } ) : Promise < boolean > {
49+ protected async validateIdentificationParameters ( params : Record < string , string > = { } ) : Promise < boolean > {
5050 try {
5151 const cliMode = await this . checkCLIMode ( )
5252 if ( cliMode === 'remote' && Object . keys ( params ) . length === 0 ) {
@@ -128,7 +128,7 @@ export class MacCodacyCli extends CodacyCli {
128128 const updateCommand = `${ this . getCliCommand ( ) } update`
129129 const resetCommand = `${ this . getCliCommand ( ) } config reset`
130130 try {
131- const hasIdentificationParams = await this . hasIdentificationParams ( resetParams )
131+ const hasIdentificationParams = await this . validateIdentificationParameters ( resetParams )
132132 if ( ! hasIdentificationParams ) {
133133 Logger . debug ( 'CLI mode is remote and no identification parameters provided. Skipping update and config reset.' )
134134 return
@@ -249,7 +249,7 @@ export class MacCodacyCli extends CodacyCli {
249249 const discoverParams = this . getIdentificationParameters ( )
250250
251251 try {
252- const hasIdentificationParams = await this . hasIdentificationParams ( discoverParams )
252+ const hasIdentificationParams = await this . validateIdentificationParameters ( discoverParams )
253253 if ( ! hasIdentificationParams ) {
254254 Logger . debug ( 'CLI mode is remote and no identification parameters provided. Skipping config discover.' )
255255 return
You can’t perform that action at this time.
0 commit comments