File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -39,12 +39,11 @@ SwaggerAuthorizations.prototype.remove = function (name) {
3939
4040SwaggerAuthorizations . 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' ) {
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments