Skip to content

Commit

Permalink
fix leftover nitpicks (vercel#2581)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
sokra and kodiakhq[bot] authored Nov 8, 2022
1 parent 79e6c31 commit 72f8fcc
Show file tree
Hide file tree
Showing 17 changed files with 34 additions and 66 deletions.
4 changes: 2 additions & 2 deletions crates/turbopack-dev-server/src/source/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ pub trait ContentSource {
/// Gets content by `path` and request `data` from the source. `data` is
/// empty by default and will only be filled when returning `NeedData`.
/// This is useful as this method call will be cached based on it's
/// arguments, so we want to make the arguments contain as few information
/// as possible to increase cache hit ratio.
/// arguments, so we want to make the arguments contain as little
/// information as possible to increase cache hit ratio.
fn get(&self, path: &str, data: Value<ContentSourceData>) -> ContentSourceResultVc;
}

Expand Down
6 changes: 2 additions & 4 deletions crates/turbopack-ecmascript/js/src/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,8 @@
function interopEsm(raw, ns, allowExportDefault) {
/** @type {Object.<string, () => any>} */
const getters = { __proto__: null };
if (typeof raw === "object" || typeof raw === "function") {
for (const key in raw) {
getters[key] = createGetter(raw, key);
}
for (const key in raw) {
getters[key] = createGetter(raw, key);
}
if (!(allowExportDefault && "default" in getters)) {
getters["default"] = () => raw;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 72f8fcc

Please sign in to comment.