Skip to content

Commit

Permalink
fix prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
vonovak committed Aug 7, 2019
1 parent 718b6b7 commit bcdbc8c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Libraries/Lists/VirtualizedList.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,9 @@ class VirtualizedList extends React.PureComponent<Props, State> {
const {animated, index, viewOffset, viewPosition} = params;
invariant(
index >= 0 && index < getItemCount(data),
`scrollToIndex out of range: requested index ${index} but maximum is ${getItemCount(data) - 1}`,
`scrollToIndex out of range: requested index ${index} but maximum is ${getItemCount(
data,
) - 1}`,
);
if (!getItemLayout && index > this._highestMeasuredFrameIndex) {
invariant(
Expand Down

0 comments on commit bcdbc8c

Please sign in to comment.