Skip to content

Commit e9d954f

Browse files
committed
Fix formatting
1 parent 6508845 commit e9d954f

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/index.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ class Animation extends PureComponent {
99
componentDidMount() {
1010
this.loadAnimation(this.props);
1111

12-
if (typeof this.props.progress === 'object' &&
13-
this.props.progress._listeners) {
14-
12+
if (typeof this.props.progress === 'object' && this.props.progress._listeners) {
1513
this.props.progress.addListener((progress) => {
1614
const { value } = progress;
1715
let frame = value / (1 / this.anim.getDuration(true));
@@ -21,9 +19,8 @@ class Animation extends PureComponent {
2119
}
2220

2321
componentWillUnmount() {
24-
if (typeof this.props.progress === 'object' &&
25-
this.props.progress._listeners) {
26-
this.props.progress.removeAllListeners();
22+
if (typeof this.props.progress === 'object' && this.props.progress._listeners) {
23+
this.props.progress.removeAllListeners();
2724
}
2825
}
2926

0 commit comments

Comments
 (0)