Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
Signed-off-by: paulober <[email protected]>
  • Loading branch information
paulober committed Jun 22, 2024
1 parent 1272716 commit d32cc0c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/stubs.mts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import which from "which";
import { execSync } from "child_process";
import axios, { HttpStatusCode } from "axios";
import type Settings from "./settings.mjs";
import { strict as assert } from "assert";

export default class Stubs {
private logger: Logger;
Expand Down Expand Up @@ -324,7 +325,8 @@ export async function installStubsByVersion(
return false;
}
} else {
command = pip3 ?? pip;
assert(pip3 !== null || pip !== null);
command = (pip3 ?? pip)!;
}

const folderName = `${port}==${version}`;
Expand Down

0 comments on commit d32cc0c

Please sign in to comment.