cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [14/16] git commit: [CB-4797] Add missing return statement in cordova serve
Date Thu, 12 Sep 2013 23:35:55 GMT
[CB-4797] Add missing return statement in cordova serve


Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/b1cadf0d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/b1cadf0d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/b1cadf0d

Branch: refs/heads/ffos
Commit: b1cadf0d1f6afc01960895c512be4ed562d502c9
Parents: 1571f9d
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Thu Sep 12 16:26:46 2013 -0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Thu Sep 12 16:27:23 2013 -0400

----------------------------------------------------------------------
 src/serve.js | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/b1cadf0d/src/serve.js
----------------------------------------------------------------------
diff --git a/src/serve.js b/src/serve.js
index e262e12..a72bd23 100644
--- a/src/serve.js
+++ b/src/serve.js
@@ -56,6 +56,7 @@ function launchServer(projectRoot, port) {
             response.writeHead(404, {"Content-Type": "text/plain"});
             response.write("404 Not Found\n");
             response.end();
+            return;
         }
 
         fs.exists(filePath, function(exists) {


Mime
View raw message