Skip to content

Commit

Permalink
fix: eslint no empty (#197)
Browse files Browse the repository at this point in the history
* Enabled no-empty eslint rule and fixed lint errors

* PR feedback
  • Loading branch information
greg-a-smith committed Jan 15, 2019
1 parent c61cbc1 commit 5de3c66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ rules:
no-dupe-keys: 2
no-duplicate-case: 2
no-empty-character-class: 2
#no-empty: 2
no-empty: 2
no-ex-assign: 2
no-extra-bind: 2
no-extra-boolean-cast: 0
Expand Down
4 changes: 1 addition & 3 deletions src/Time/Time.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ class TimeItem extends Component {
aux = event.target.value.replace(/\D/, '');
this.updateStyle(style, aux, max);
this.setState({ value: aux });
} else {
}

this.props.updateTime(aux, this.props.name, event);
Expand Down Expand Up @@ -315,8 +314,7 @@ export class Time extends Component {
constructor(props) {
super(props);
const { time } = this.props;
if (time.hour !== '00') {
} else {
if (time.hour === '00') {
time.hour = this.props.format12Hours ? '12' : '00';
}
this.state = {
Expand Down

0 comments on commit 5de3c66

Please sign in to comment.