Skip to content

Commit

Permalink
Resolved syntax error on line 7
Browse files Browse the repository at this point in the history
SyntaxError : "Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
  • Loading branch information
Deepak Jha committed Apr 6, 2017
1 parent 6076cca commit 7f37041
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/topic_request.js
Expand Up @@ -3,7 +3,7 @@ var https = require('https');
function TopicRequest(options, data, CB){
const payload = JSON.stringify(data);
const request = https.request(options, (res) => {

"use strict";
let body = '';

if(res.statusCode !== 200){
Expand All @@ -25,4 +25,4 @@ function TopicRequest(options, data, CB){
}).end(payload);
}

module.exports = TopicRequest;
module.exports = TopicRequest;

0 comments on commit 7f37041

Please sign in to comment.