Skip to content

Commit de6e954

Browse files
committed
Fix prettier
1 parent 41746e7 commit de6e954

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@ export default class InfiniteScroll extends Component<Props, State> {
138138

139139
UNSAFE_componentWillReceiveProps(props: Props) {
140140
// do nothing when dataLength is unchanged
141-
if (this.props.dataLength === props.dataLength)
142-
return;
141+
if (this.props.dataLength === props.dataLength) return;
143142

144143
this.actionTriggered = false;
145144
// update state when new data was sent in

0 commit comments

Comments
 (0)