Add ESLint rule (object-curly-spacing) (#3498)

This commit is contained in:
Yamagishi Kazutoshi 2017-06-02 00:25:10 +09:00 committed by Eugen Rochko
parent cb7ee4698f
commit fda5c699c2
9 changed files with 19 additions and 16 deletions

View file

@ -22,11 +22,11 @@ class ImageLoader extends React.PureComponent {
loadImage(src) {
const image = new Image();
image.onerror = () => this.setState({loading: false, error: true});
image.onload = () => this.setState({loading: false, error: false});
image.onerror = () => this.setState({ loading: false, error: true });
image.onload = () => this.setState({ loading: false, error: false });
image.src = src;
this.lastSrc = src;
this.setState({loading: true});
this.setState({ loading: true });
}
render() {