Skip to content

Commit 486cc2e

Browse files
committed
Remove unnecessary null check
1 parent d73eb55 commit 486cc2e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

packages/react-pdf/src/Outline.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,6 @@ export default function Outline(props: OutlineProps): React.ReactElement | null
124124

125125
useEffect(
126126
function loadOutline() {
127-
if (!pdf) {
128-
// Impossible, but TypeScript doesn't know that
129-
return;
130-
}
131-
132127
const cancellable = makeCancellable(pdf.getOutline());
133128
const runningTask = cancellable;
134129

0 commit comments

Comments
 (0)