Skip to content

Commit

Permalink
fixes issue with imports
Browse files Browse the repository at this point in the history
Signed-off-by: invinciblejai <[email protected]>
  • Loading branch information
invincibleJai committed Jan 15, 2018
1 parent fe653c8 commit 342d79e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { EmptyResultEngine, SecurityEngine, DiagnosticsPipeline, codeActionsMap

const url = require('url');
const https = require('https');
const http = require('http');
const request = require('request');
const winston = require('winston');

Expand Down Expand Up @@ -220,7 +219,7 @@ let get_metadata = (ecosystem, name, version, cb) => {
options['headers'] = {'Authorization': 'Bearer ' + config.api_token};
winston.debug('get ' + options['host'] + options['path']);
if(process.env.RECOMMENDER_API_URL){
http.get(options, function(res){
https.get(options, function(res){
let body = '';
res.on('data', function(chunk) { body += chunk; });
res.on('end', function(){
Expand Down

0 comments on commit 342d79e

Please sign in to comment.