Skip to content

Commit

Permalink
fix: lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Gomes committed Oct 17, 2024
1 parent e8aca8f commit a762ba6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libraries/rush-lib/src/logic/PackageJsonUpdater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,6 @@ export class PackageJsonUpdater {
}

private async _getRemoteLatestVersionAsync(packageName: string): Promise<string> {
let selectedVersion: string | undefined;
this._terminal.writeLine(`Querying NPM registry for latest version of "${packageName}"...`);

let commandArgs: string[];
Expand All @@ -550,7 +549,7 @@ export class PackageJsonUpdater {
commandArgs = ['view', `${packageName}@latest`, 'version'];
}

selectedVersion = (
const selectedVersion: string = (
await Utilities.executeCommandAndCaptureOutputAsync(
this._rushConfiguration.packageManagerToolFilename,
commandArgs,
Expand Down

0 comments on commit a762ba6

Please sign in to comment.