Skip to content

Commit

Permalink
add error type
Browse files Browse the repository at this point in the history
  • Loading branch information
bgawkuc committed Jun 18, 2024
1 parent ece8190 commit c5b93db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/isPdfFilePasswordProtected/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const isPdfFilePasswordProtected = (file: FileObject): Promise<boolean> =>
() => {
resolve(false);
},
(error) => {
(error: Error) => {
if (error.name === 'PasswordException') {
resolve(true);
return;
Expand Down

0 comments on commit c5b93db

Please sign in to comment.