From 141dfa2dc74879cf0cd423f869061a7eaeba57e7 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 28 Oct 2017 22:39:38 -0400 Subject: [PATCH] a few formatting updates --- gulpfile.js | 6 +++--- src/popup/app/services/state.service.ts | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index c7da35cd393..c75fc5d303c 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -81,7 +81,7 @@ gulp.task('dist:edge', function (cb) { }); function copyDistEdge(source, dest) { - return new Promise(function (resolve, reject) { + return new Promise((resolve, reject) => { gulp.src(source) .on('error', reject) .pipe(gulpif('popup/index.html', replace('__BROWSER__', 'edge'))) @@ -98,7 +98,7 @@ function copyDistEdge(source, dest) { } function copyAssetsEdge(source, dest) { - return new Promise(function (resolve, reject) { + return new Promise((resolve, reject) => { gulp.src(source) .on('error', reject) .pipe(gulpif('AppxManifest.xml', xmlpoke({ @@ -133,7 +133,7 @@ gulp.task('webfonts', function () { // LEGACY CODE! // -// Needed untill background.js is converted into a proper webpack compatible file. +// Needed until background.js is converted into a proper webpack compatible file. gulp.task('lint', function () { return gulp.src([ diff --git a/src/popup/app/services/state.service.ts b/src/popup/app/services/state.service.ts index 55bc309f74e..4c3b09506c8 100644 --- a/src/popup/app/services/state.service.ts +++ b/src/popup/app/services/state.service.ts @@ -1,8 +1,7 @@ -class StateService { - +class StateService { private state: any = {}; - constructor (private utilsService: any, private constantsService: any) { + constructor(private utilsService: any, private constantsService: any) { } async init() {