use const instead of let

This commit is contained in:
Iuri Matias 2018-06-02 10:06:58 -04:00
parent 72e24f5e1b
commit 6e424f36b0
1 changed files with 8 additions and 8 deletions

View File

@ -67,8 +67,8 @@ class Embark {
self.context = options.context || [constants.contexts.run, constants.contexts.build]; self.context = options.context || [constants.contexts.run, constants.contexts.build];
let Dashboard = require('./dashboard/dashboard.js'); let Dashboard = require('./dashboard/dashboard.js');
let Engine = require('./core/engine.js'); const Engine = require('./core/engine.js');
let engine = new Engine({ const engine = new Engine({
env: options.env, env: options.env,
client: options.client, client: options.client,
locale: options.locale, locale: options.locale,
@ -158,8 +158,8 @@ class Embark {
build(options) { build(options) {
this.context = options.context || [constants.contexts.build]; this.context = options.context || [constants.contexts.build];
let Engine = require('./core/engine.js'); const Engine = require('./core/engine.js');
let engine = new Engine({ const engine = new Engine({
env: options.env, env: options.env,
client: options.client, client: options.client,
locale: options.locale, locale: options.locale,
@ -214,8 +214,8 @@ class Embark {
this.context = options.context || [constants.contexts.graph]; this.context = options.context || [constants.contexts.graph];
options.onlyCompile = true; options.onlyCompile = true;
let Engine = require('./core/engine.js'); const Engine = require('./core/engine.js');
let engine = new Engine({ const engine = new Engine({
env: options.env, env: options.env,
isDev: this.isDev(options.env), isDev: this.isDev(options.env),
version: this.version, version: this.version,
@ -270,8 +270,8 @@ class Embark {
upload(options) { upload(options) {
this.context = options.context || [constants.contexts.upload, constants.contexts.build]; this.context = options.context || [constants.contexts.upload, constants.contexts.build];
let Engine = require('./core/engine.js'); const Engine = require('./core/engine.js');
let engine = new Engine({ const engine = new Engine({
env: options.env, env: options.env,
client: options.client, client: options.client,
locale: options.locale, locale: options.locale,