From 2108713827714d9376b36b9df9ebcfe168387e8b Mon Sep 17 00:00:00 2001 From: Joshua Smithrud Date: Thu, 23 May 2024 22:26:21 +0000 Subject: [PATCH] refactor: Rename variable per conventions --- apps/api-extractor/src/api/ExtractorConfig.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/api-extractor/src/api/ExtractorConfig.ts b/apps/api-extractor/src/api/ExtractorConfig.ts index 5596aba31df..7d0fb3c7319 100644 --- a/apps/api-extractor/src/api/ExtractorConfig.ts +++ b/apps/api-extractor/src/api/ExtractorConfig.ts @@ -931,8 +931,8 @@ export class ExtractorConfig { ); } - const iSuffix: number = apiReportConfig.reportFileName.indexOf(reportFileNameSuffix); - if (iSuffix < 0) { + const suffixIndex: number = apiReportConfig.reportFileName.indexOf(reportFileNameSuffix); + if (suffixIndex < 0) { // `.api.md` extension was not specified. Use provided file name base as is. reportFileNameBase = apiReportConfig.reportFileName; } else { @@ -941,7 +941,7 @@ export class ExtractorConfig { // that ends with the `.api.md` extension specially, by stripping it out. // This should be removed in version 8, possibly replaced with an explicit error to help users // migrate their configs. - reportFileNameBase = apiReportConfig.reportFileName.slice(0, iSuffix); + reportFileNameBase = apiReportConfig.reportFileName.slice(0, suffixIndex); } } else { // Default value