Skip to content

Commit

Permalink
Unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
maniart committed Dec 28, 2016
1 parent e48637a commit 6fa9ac7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Diffy.js
Expand Up @@ -204,12 +204,12 @@ export default class Diffy {


static create(options) {
if(Diffy.instanceExists) {
if (Diffy.instanceExists) {
throw new Error(`It seems a diffy instance
already exists on this page.`);
}

return new this(options);
Diffy.instanceExists = true;
return new this(options);
}
}

0 comments on commit 6fa9ac7

Please sign in to comment.