Skip to content

Commit c1f4d59

Browse files
committed
fixed duplicated names
1 parent 8f78452 commit c1f4d59

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

angular-http-server.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@ function start() {
8181
}
8282

8383
function returnDistFile() {
84-
var path = "index.html";
84+
var distPath = "index.html";
8585
var argvPath = argv.path;
8686
if (argvPath && fs.existsSync(argvPath)) {
87-
path = path.join(argvPath, 'index.html');
87+
distPath = path.join(argvPath, 'index.html');
8888
} else if (argvPath && !fs.existsSync(argvPath)) {
8989
console.log("Can't find %s, using current dir instead", argvPath);
9090
}
9191

92-
return fs.readFileSync(path);
92+
return fs.readFileSync(distPath);
9393
}
9494

9595
function resolveUrl(filename) {

0 commit comments

Comments
 (0)