Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit369f2d4

Browse files
committed
mv var to top of function to be consistent with style in rest of file
1 parent74ae6f6 commit369f2d4

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
functioninternalRewire(parentModulePath,targetPath){
2020
vartargetModule,
2121
prelude,
22-
appendix;
22+
appendix,
23+
src;
2324

2425
// Checking params
2526
if(typeoftargetPath!=="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-
varsrc=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)

[8]ページ先頭

©2009-2025 Movatter.jp