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

Fix nits/typos from "Allow specs to be represented by a simple string" #4

Merged
merged 1 commit into from
Jan 31, 2020

Conversation

foolip
Copy link
Member

@foolip foolip commented Jan 31, 2020

#3

@foolip foolip requested a review from tidoust January 31, 2020 09:23
const clarifyErrors = errors => {
if (!errors || (errors.length < 2)) {
if (!errors || errors.length < 2) {
Copy link
Member

Choose a reason for hiding this comment

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

Do you have favorite code guidelines?

I don't mind either syntax, just wondering if this is more gut feeling or if you're following a specific rule here. For instance, if I run ESLint with no-extra-parens, it's going to report this line but it's also going to report other if lines below where parentheses could also be dropped.

Copy link
Member Author

Choose a reason for hiding this comment

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

My favorite style is any style that can be enforced and autofixed by tooling. These parens just seemed clearly unnecessary to me, but if a style rule added them back I wouldn’t mind.

@tidoust tidoust merged commit 8fed617 into master Jan 31, 2020
@foolip foolip deleted the urlonly-nits branch January 31, 2020 11:06
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.

2 participants