Skip to content
This repository has been archived by the owner on Feb 14, 2018. It is now read-only.

Commit

Permalink
Cleanup jslint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pquerna committed Sep 27, 2010
1 parent 57c6a97 commit db5cf23
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/util/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var fs = require('fs');
var log = require('util/log');
var uri = require('extern/restler/lib/vendor/uri');
var rest = require('extern/restler/lib/restler');
var version = require('util/version')
var version = require('util/version');

exports.client = function(remote)
{
Expand All @@ -43,7 +43,7 @@ exports.client = function(remote)
// TOOD: SSL verify fingerprint

return client;
}
};

/**
* Write JSON to an HTTP response.
Expand Down Expand Up @@ -114,7 +114,6 @@ exports.put_file = function(source, url, options) {
* @return {*} Response String if parse_json is false, Object otherwise.
*/
exports.get_response_with_client = function(client, path, method, parse_json, callback) {
var host, port, secure, path;
var data_buffer, data;

if (!misc.in_array(method, ['GET', 'PUT', 'POST'])) {
Expand Down Expand Up @@ -160,4 +159,4 @@ exports.get_response_with_client = function(client, path, method, parse_json, ca
exports.get_response = function(remote, path, method, parse_json, callback) {
var client = exports.client(remote);
return exports.get_response_with_client(client, path, method, parse_json, callback);
}
};

0 comments on commit db5cf23

Please sign in to comment.