Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Found var nit.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Jan 30, 2019
1 parent faaa6f0 commit 8eedbc0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,10 @@ class Entry {
entry.type === TYPE_CJS) {
const { bridged } = shared
const exported = entry.module.exports
const found = bridged.get(exported)
const foundEntry = bridged.get(exported)

if (found !== void 0) {
entry = found
if (foundEntry !== void 0) {
entry = foundEntry
bridged.delete(exported)
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/error/mask-stack-trace.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ function init() {
}
}

let arrowFound = false
let foundArrow = false

stack = stack.replace(arrowRegExp, (match, decoratorLine, decoratorArrow, decoratorNewline = "") => {
arrowFound = true
foundArrow = true

if (useDecoratorLine) {
contentLine = decoratorLine
Expand Down Expand Up @@ -176,7 +176,7 @@ function init() {
: contentLine + (contentLine ? "\n\n" : "\n")
})

if (arrowFound) {
if (foundArrow) {
return stack
}

Expand Down
6 changes: 3 additions & 3 deletions src/module/internal/load.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ function load(filename, parent, isMain = false, cache, loader) {
let entry
let mod = cache[filename]

const found = mod !== void 0
const foundMod = mod !== void 0

if (found) {
if (foundMod) {
const children = parent != null && parent.children

if (Array.isArray(children) &&
Expand Down Expand Up @@ -60,7 +60,7 @@ function load(filename, parent, isMain = false, cache, loader) {
}
}

if (! found) {
if (! foundMod) {
const { _compile } = mod

mod._compile = (content, filename) => {
Expand Down

0 comments on commit 8eedbc0

Please sign in to comment.