Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into rollup-2
Browse files Browse the repository at this point in the history
  • Loading branch information
John Vilk committed Oct 11, 2016
2 parents ffa5bd9 + 23dfa99 commit 2384935
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/backend/AsyncMirror.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,7 @@ export default class AsyncMirror extends SynchronousFileSystem implements FileSy
this._sync = sync;
this._async = async;
if (!sync.supportsSynch()) {
throw new Error("Expected synchronous storage.");
}
if (async.supportsSynch()) {
throw new Error("Expected asynchronous storage.");
throw new Error("The first argument to AsyncMirror needs to be a synchronous file system.");
}
}

Expand Down

0 comments on commit 2384935

Please sign in to comment.