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

Clean-up of PathUtil #241

Merged
merged 4 commits into from
Apr 29, 2016
Merged

Clean-up of PathUtil #241

merged 4 commits into from
Apr 29, 2016

Conversation

edgarmueller
Copy link
Contributor

@edgarmueller edgarmueller commented Apr 29, 2016

Small refactoring of PathUtil + JSDoc, also fixed some minor warnings.
Usage of start case when beautifying labels.
Fixed name of inits function, which actually should be named init (as e.g. here).

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.05%) to 91.124% when pulling f67b42e on edgarmueller:master into 2d7bb6c on eclipsesource:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 91.209% when pulling 1990522 on edgarmueller:master into 2d7bb6c on eclipsesource:master.

@edgarmueller
Copy link
Contributor Author

@eneufeld This is a refactoring I did in my spare time to explore lodash. No issue or whatsoever tracks this.

* @returns {any} the last fragment in a beautified manner
*/
static beautifiedLastFragment(schemaPath: string): string {
return _.flow(PathUtil.lastFragment, _.upperFirst, PathUtil.beautify)(schemaPath);
Copy link
Member

Choose a reason for hiding this comment

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

the _.uperFirst call is not necessary as the beautify method will upper case the string

@eneufeld
Copy link
Member

Thank you, the code is much better readable. I added two small comments, but they should/could be fixed separately as they are improvements

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 91.209% when pulling 148d900 on edgarmueller:master into 2d7bb6c on eclipsesource:master.

@eneufeld eneufeld merged commit 033fc63 into eclipsesource:master Apr 29, 2016
@eneufeld eneufeld added this to the 0.0.20 milestone Apr 29, 2016
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

3 participants