Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnstonCode committed Oct 28, 2019
1 parent 64488a7 commit 02b5007
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tempFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ import * as crypto from "crypto";
export const tempdir = path.join(os.tmpdir(), "vscode-svn");

export async function dumpSvnFile(
snvUri: Uri,
svnUri: Uri,
revision: string,
payload: string
): Promise<Uri> {
if (!(await exists(tempdir))) {
await mkdir(tempdir);
}
const fname = `r${revision}_${path.basename(snvUri.fsPath)}`;
const fname = `r${revision}_${path.basename(svnUri.fsPath)}`;
const hash = crypto.createHash("md5");
const data = hash.update(snvUri.fsPath);
const data = hash.update(svnUri.fsPath);
const filePathHash = data.digest("hex");
const fpath = path.join(tempdir, filePathHash, fname);
await writeFile(fpath, payload);
Expand Down

0 comments on commit 02b5007

Please sign in to comment.