diff --git a/app/authenticators/custom.js b/app/authenticators/custom.js index bda9ea53b1..faa9cd75c8 100644 --- a/app/authenticators/custom.js +++ b/app/authenticators/custom.js @@ -108,7 +108,7 @@ export default BaseAuthenticator.extend({ invalidate: function() { if (this.useGoogleAuth) { - return new Ember.RSVP.resolve(); + return Ember.RSVP.resolve(); } else { return this._getPromise('DELETE'); } diff --git a/app/inventory/barcode/controller.js b/app/inventory/barcode/controller.js index 3fa7fb9bd8..36bab992fc 100644 --- a/app/inventory/barcode/controller.js +++ b/app/inventory/barcode/controller.js @@ -5,6 +5,8 @@ export default Ember.Controller.extend({ barcodeUri: function() { let id = this.get('model.id'); let name = this.get('model.name'); + + /* eslint new-cap: ['error', { 'capIsNew': false }] */ return Ember.$(document).JsBarcode(id, { width: 1, height: 20, diff --git a/app/mixins/progress-dialog.js b/app/mixins/progress-dialog.js index 07ecf01a0e..18fe3813e6 100644 --- a/app/mixins/progress-dialog.js +++ b/app/mixins/progress-dialog.js @@ -39,7 +39,7 @@ export default Ember.Mixin.create({ showProgressModal: function() { let progressDialog = Ember.Object.create(this.get('progressDialogDefaults')); - progressDialog.progressBarStyle = new Ember.String.htmlSafe(progressDialog.progressBarStyle); + progressDialog.progressBarStyle = Ember.String.htmlSafe(progressDialog.progressBarStyle); progressDialog.set('title', this.get('progressTitle')); progressDialog.set('message', this.get('progressMessage')); this.set('progressDialog', progressDialog);