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

[Cleanup] eslint new-cap #810

Merged
merged 1 commit into from
Nov 17, 2016
Merged

[Cleanup] eslint new-cap #810

merged 1 commit into from
Nov 17, 2016

Conversation

btecu
Copy link
Contributor

@btecu btecu commented Nov 17, 2016

new report() -> new Report()

Part of #732.

cc @HospitalRun/core-maintainers

This was referenced Nov 17, 2016
Copy link
Member

@jkleinsc jkleinsc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@btecu just a quick question on the change to 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 }] */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@btecu why is this override needed here? I'm not seeing a new being used here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nevermind... I see why now.

Copy link
Member

@jkleinsc jkleinsc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@btecu I tested why the change to app/inventory/barcode/controller.js was needed and it makes sense now. thanks for the PR! I'll go ahead and merge it in.

@@ -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 }] */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nevermind... I see why now.

@jkleinsc jkleinsc merged commit b78143f into HospitalRun:master Nov 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants