Skip to content

Commit ba00f25

Browse files
committed
linting
1 parent ca6aad0 commit ba00f25

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

lib/auth.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,11 @@ SwaggerAuthorizations.prototype.remove = function (name) {
3939

4040
SwaggerAuthorizations.prototype.apply = function (obj, securities) {
4141
var status = null;
42-
var key, name, value, result;
4342
var applyAll = !securities;
4443
var flattenedSecurities = [];
4544

4645
// Securities could be [ {} ]
47-
_.each(securities, function (obj,key) {
46+
_.each(securities, function (obj, key) {
4847

4948
// Make sure we account for securities being [ str ]
5049
if(typeof key === 'string') {

lib/http.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,6 @@ JQueryHttpClient.prototype.execute = function (obj) {
146146
headers: headers
147147
};
148148

149-
var contentType = (headers['content-type'] || headers['Content-Type'] || null);
150-
151149
try {
152150
var possibleObj = response.responseJSON || jsyaml.safeLoad(response.responseText);
153151
out.obj = (typeof possibleObj === 'string') ? {} : possibleObj;
@@ -182,8 +180,6 @@ SuperagentHttpClient.prototype.execute = function (obj) {
182180
var headers = obj.headers || {};
183181
var r = request[method](obj.url);
184182
var name;
185-
var accept = headers.accept || headers.Accept;
186-
187183
for (name in headers) {
188184
r.set(name, headers[name]);
189185
}

0 commit comments

Comments
 (0)