-
Notifications
You must be signed in to change notification settings - Fork 78
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
fix: eslint no empty #197
Conversation
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 |
There was a problem hiding this comment.
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')
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
* Enabled no-empty eslint rule and fixed lint errors * PR feedback
Enabled the
no-empty
eslint rule and fixed lint errors.#169