Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Heliozoa committed Aug 11, 2023
1 parent 4cfa717 commit 5edf1ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/tmc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export default class TMC {
const res = await this._executeLangsCommand(
{
args: this._tmcCmd("login", "--base64", "--email", username, "--stdin"),
obfuscate: [4],
obfuscate: [8],
stdin: Buffer.from(password).toString("base64"),
},
null,
Expand Down
1 change: 1 addition & 0 deletions src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export async function downloadFile(
}
await file.write(chunk);
}
await file.close();
} else {
throw new Error("Unexpected null response body");
}
Expand Down

0 comments on commit 5edf1ca

Please sign in to comment.