mirror of
				https://github.com/therootcompany/greenlock-express.js.git
				synced 2024-11-16 17:28:59 +00:00 
			
		
		
		
	remove duplicate var
This commit is contained in:
		
							parent
							
								
									83c47d6007
								
							
						
					
					
						commit
						f9e75faba7
					
				| @ -22,7 +22,6 @@ module.exports.create = function (opts) { | |||||||
|     console.log.apply(console, args); |     console.log.apply(console, args); | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   opts._le = opts.letsencrypt; |  | ||||||
|   opts.addWorker = function (worker) { |   opts.addWorker = function (worker) { | ||||||
|     opts._workers.push(worker); |     opts._workers.push(worker); | ||||||
| 
 | 
 | ||||||
| @ -68,10 +67,10 @@ module.exports.create = function (opts) { | |||||||
|         // */
 |         // */
 | ||||||
| 
 | 
 | ||||||
|         if (results.certs) { |         if (results.certs) { | ||||||
|           promise = opts._le.renew(results.options, results.certs); |           promise = opts.letsencrypt.renew(results.options, results.certs); | ||||||
|         } |         } | ||||||
|         else { |         else { | ||||||
|           promise = opts._le.register(results.options); |           promise = opts.letsencrypt.register(results.options); | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         promise.then(function (certs) { |         promise.then(function (certs) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user