Skip to content

Commit

Permalink
Fix: manual fix eslint test files
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert committed Sep 29, 2017
1 parent da474ec commit ae7e209
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/lib/linter.js
Expand Up @@ -20,7 +20,8 @@
function compatRequire(name, windowName) {
if (typeof window === "object") {
return window[windowName || name];
} else if (typeof require === "function") {
}
if (typeof require === "function") {
return require(name);
}
throw new Error(`Cannot find object '${name}'.`);
Expand Down

0 comments on commit ae7e209

Please sign in to comment.