Skip to content

Commit

Permalink
feat(env-options): review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed May 20, 2023
1 parent 16a3a7f commit 00c63b1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion packages/env-options/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Parameterizing Modules with Environment Options

JavaScript module semantics resists attempts to parameterize a module's
JavaScript module semantics resist attempts to parameterize a module's
initialization behavior. A module initializes in order according to
the path by which it is first imported, and then the initialized module
is reused by all the other times it is imported. Compartments give us
Expand Down
5 changes: 0 additions & 5 deletions packages/env-options/src/env-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,6 @@ export const makeEnvironmentCaptor = aGlobal => {
}
}
}
setting === undefined ||
typeof setting === 'string' ||
Fail`Environment option value ${q(
setting,
)}, if present, must be a string.`;
return setting;
};
freeze(getEnvironmentOption);
Expand Down

0 comments on commit 00c63b1

Please sign in to comment.