Skip to content

Commit

Permalink
chore: remove extra logs
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilNarayana committed Nov 1, 2023
1 parent 2d84606 commit 149a902
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/dolphin/install/mainlineInstallation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ export class MainlineDolphinInstallation implements DolphinInstallation {

const latestVersion = dolphinDownloadInfo?.version;
const isOutdated = !latestVersion || (await this._isOutOfDate(latestVersion));
log.warn(`latest version = ${latestVersion}`);
if (!isOutdated) {
log.info("No update found...");
onComplete();
Expand Down Expand Up @@ -226,15 +225,13 @@ export class MainlineDolphinInstallation implements DolphinInstallation {

private async _isOutOfDate(latestVersion: string): Promise<boolean> {
const dolphinVersion = await this.getDolphinVersion();
log.info(`dolphin version = ${dolphinVersion}`);
return !dolphinVersion || lt(dolphinVersion, latestVersion);
}

public async getDolphinVersion(): Promise<string | null> {
try {
const dolphinPath = await this.findDolphinExecutable();
const dolphinVersionOut = spawnSync(dolphinPath, ["--version"]).stdout.toString();
log.warn(`dolphinVersionOut = ${dolphinVersionOut}`);
const match = dolphinVersionOut.match(semverRegex);
return match?.[0] ?? null;
} catch (err) {
Expand Down

0 comments on commit 149a902

Please sign in to comment.