10000 mv var to top of function to be consistent with style in rest of file · ShMcK/rewire-coderoad@369f2d4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 369f2d4

Browse files
committed
mv var to top of function to be consistent with style in rest of file
1 parent 74ae6f6 commit 369f2d4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/rewire.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ var srcs = {
1919
function internalRewire(parentModulePath, targetPath) {
2020
var targetModule,
2121
prelude,
22-
appendix;
22+
appendix,
23+
src;
2324

2425
// Checking params
2526
if (typeof targetPath !== "string") {
@@ -56,7 +57,7 @@ function internalRewire(parentModulePath, targetPath) {
5657

5758
// Check if the module uses the strict mode.
5859
// If so we must ensure that "use strict"; stays at the beginning of the module.
59-
var src = fs.readFileSync(targetPath, "utf8");
60+
src = fs.readFileSync(targetPath, "utf8");
6061
if (detectStrictMode(src) === true) {
6162
prelude = ' "use strict"; ' + prelude;
6263
}

0 commit comments

Comments
 (0)
0