Replace const with let to conform to coding style

This commit is contained in:
Mike Stead 2016-08-01 09:57:06 +10:00
parent 51965f94b5
commit 190b5e79f6

View File

@ -43,7 +43,7 @@ export class SpecManager {
/* calculate common used values */ /* calculate common used values */
init() { init() {
let protocol; let protocol;
const urlParts = urlParse(this._url); let urlParts = urlParse(this._url);
if (!this._schema.schemes || !this._schema.schemes.length) { if (!this._schema.schemes || !this._schema.schemes.length) {
protocol = this._url ? urlParts.protocol : 'http'; protocol = this._url ? urlParts.protocol : 'http';
} else { } else {