Skip to content

Commit

Permalink
remove unnecessary "optional chaining" check
Browse files Browse the repository at this point in the history
* "attachmentsContent" already checked at line 80
  • Loading branch information
vladimiry committed Jul 26, 2020
1 parent 6a7d92f commit 28aac57
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function formatAttachment(
throw new Error(
[
"Invalid attachments content items array length ",
`(expected: ${String(attachments.length)}; actual: ${String(attachmentsContent?.length)})`,
`(expected: ${String(attachments.length)}; actual: ${String(attachmentsContent.length)})`,
].join(""),
);
}
Expand Down

0 comments on commit 28aac57

Please sign in to comment.