Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Converted camelCase field names to title case. #66

Merged
merged 3 commits into from
Apr 18, 2017

Conversation

jonmccormick
Copy link
Contributor

For issue #58

return camelCase;
}
camelCase = camelCase.trim();
var newText = "";
Copy link
Member

Choose a reason for hiding this comment

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

Instead of var use let

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

newText = camelCase[0].toUpperCase();
}

for (var i = 1; i < camelCase.length; i++) {
Copy link
Member

Choose a reason for hiding this comment

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

Use let

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -43,8 +43,11 @@ export default class ServerHardware extends Resource {
if (this.__isNonDisplayField__(field) || !this[field]) {
continue;
}

var displayField = this.camelCaseToTitleCase(field);
Copy link
Member

Choose a reason for hiding this comment

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

Use let

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Member

@danielreed danielreed left a comment

Choose a reason for hiding this comment

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

Use let instead of var.

@@ -38,8 +38,11 @@ export default class ServerProfileTemplate extends Resource {
if (this.__isNonDisplayField__(field) || !this[field]) {
continue;
}

let displayField = this.amelCaseToTitleCase(field);
Copy link
Member

Choose a reason for hiding this comment

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

needs to be camelCaseToTitleCase I think

Copy link
Member

Choose a reason for hiding this comment

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

I'll merge this PR now and you can follow up with a new one to fix this issue.

@danielreed danielreed merged commit afe3a11 into HewlettPackard:master Apr 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants