Skip to content

Commit

Permalink
refactor: Rename variable per conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
Josmithr committed May 23, 2024
1 parent 022ab69 commit 2108713
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/api-extractor/src/api/ExtractorConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
Expand Down

0 comments on commit 2108713

Please sign in to comment.