Skip to content

Commit 538a885

Browse files
committed
fix
1 parent 3571ad2 commit 538a885

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

client/src/addon_manager/commands/setVersion.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default async (
1010
context: vscode.ExtensionContext,
1111
message: { data: { name: string; version: string } }
1212
) => {
13-
const addon = addonManager.addons.get(message.data.name);
13+
const addon = addonManager.addons.get(message.data.name)!;
1414

1515
try {
1616
if (message.data.version === "Latest") {

client/src/addon_manager/models/addon.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class Addon {
5555
const moduleGit = git.cwd({ path: modulePath.fsPath, root: false });
5656

5757
let currentVersion = null;
58-
let tags = [];
58+
let tags: string[] = [];
5959

6060
await this.getEnabled();
6161

@@ -133,7 +133,7 @@ export class Addon {
133133
.remote(["show", "origin"])) as string;
134134
const match = result.match(/HEAD branch: (\w+)/);
135135

136-
return match[1];
136+
return match![1];
137137
}
138138

139139
public async pull() {

0 commit comments

Comments
 (0)