Skip to content

Commit

Permalink
fix: Fix Svn not found on vs code reload
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanpas authored and JohnstonCode committed Oct 17, 2018
1 parent 5f0c725 commit a167caf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/svnFinder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class SvnFinder {
child.stdout.on("data", (b: Buffer) => buffers.push(b));
child.on("error", cpErrorHandler(e));
child.on(
"exit",
"close",
code =>
code
? e(new Error("Not found"))
Expand All @@ -127,7 +127,7 @@ export class SvnFinder {
child.stdout.on("data", (b: Buffer) => buffers.push(b));
child.on("error", cpErrorHandler(e));
child.on(
"exit",
"close",
code =>
code || Buffer.concat(buffers).toString("utf8").length < 100
? e(new Error("Not found"))
Expand Down

0 comments on commit a167caf

Please sign in to comment.