Skip to content

Commit

Permalink
chore: fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jan 20, 2025
1 parent 5b40e65 commit 630f9f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const _globalThis = (function () {
if (typeof globalThis !== "undefined") {
return globalThis;
}
/* eslint-disable unicorn/prefer-global-this */
if (typeof self !== "undefined") {
return self;
}
Expand All @@ -18,6 +19,7 @@ const _globalThis = (function () {
if (typeof global !== "undefined") {
return global;
}
/* eslint-enable unicorn/prefer-global-this */
throw new Error("unable to locate global object");
})();

Expand Down

0 comments on commit 630f9f8

Please sign in to comment.