Skip to content
Browse files

lint fixes

  • Loading branch information...
1 parent 59e160b commit caef7df72e34d5eda35c6524a1975745ac8160d7 @Seldaek Seldaek committed Jan 10, 2011
Showing with 3 additions and 4 deletions.
  1. +3 −4 frontend.js
View
7 frontend.js
@@ -13,13 +13,12 @@ var files = {
}
};
-
var serve, search;
serve = function (req, resp) {
resp.writeHead(200, {'Content-Type': files[req.url].mime});
resp.end(files[req.url].content);
-}
+};
var searchClient = http.createClient(9200, '127.0.0.1');
search = function (req, resp) {
@@ -37,12 +36,12 @@ search = function (req, resp) {
var data = [];
JSON.parse(body).hits.hits.forEach(function(hit) {
data.push(hit._source);
- })
+ });
resp.writeHead(200, {'Content-Type': 'application/json'});
resp.end(JSON.stringify(data));
});
});
-}
+};
http.createServer(function (request, response) {
if (typeof files[request.url] !== 'undefined') {

0 comments on commit caef7df

Please sign in to comment.
Something went wrong with that request. Please try again.