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: eslint no empty #197

Merged
merged 4 commits into from
Jan 15, 2019
Merged

fix: eslint no empty #197

merged 4 commits into from
Jan 15, 2019

Conversation

greg-a-smith
Copy link
Contributor

@greg-a-smith greg-a-smith commented Jan 15, 2019

Enabled the no-empty eslint rule and fixed lint errors.

#169

src/Time/Time.js Outdated
@@ -316,6 +315,7 @@ export class Time extends Component {
super(props);
const { time } = this.props;
if (time.hour !== '00') {
// do nothing
Copy link
Contributor

@bcullman bcullman Jan 15, 2019

Choose a reason for hiding this comment

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

This can just be flipped to if (time.hour === '00')

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You know ... I hmmm'd and hah'd over this. I ended up doing this because of my fear of the undefined, null, etc. values. But, I may have just been worrying over nothing. I guess undefined and null would "not equal" 00 so maybe this will be just a quick change.

Copy link
Contributor

@jbadan jbadan left a comment

Choose a reason for hiding this comment

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

🚢

@greg-a-smith greg-a-smith merged commit 5de3c66 into master Jan 15, 2019
@greg-a-smith greg-a-smith deleted the fix/eslint-no-empty branch January 15, 2019 18:52
greg-a-smith added a commit that referenced this pull request Mar 5, 2019
* Enabled no-empty eslint rule and fixed lint errors

* PR feedback
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

4 participants