Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
let -> const
Browse files Browse the repository at this point in the history
  • Loading branch information
tanepiper committed Feb 21, 2016
1 parent 77b7ba1 commit a747b40
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/gitio.js
Expand Up @@ -20,8 +20,8 @@ const gitIo = (address, code) => {
return reject(Boom.badData('The url ' + address + ' is not a valid address for git.io'));
}

let body = 'url=' + address + (code ? '&code=' + code : '');
let req = request(
const body = 'url=' + address + (code ? '&code=' + code : '');
const req = request(
Object.assign(
{},
REQUEST_CONFIG,
Expand All @@ -32,7 +32,7 @@ const gitIo = (address, code) => {
return reject(Boom.create(response.statusCode, response.statusMessage, response));
}

var output = [];
const output = [];

response.setEncoding('utf8');
response.on('data', (data) => output.push(data.toString()));
Expand Down

0 comments on commit a747b40

Please sign in to comment.