Skip to content

Commit

Permalink
Redundant null check
Browse files Browse the repository at this point in the history
Signed-off-by: jmehrens <jason_mehrens@hotmail.com>
  • Loading branch information
jmehrens committed Nov 1, 2023
1 parent 67413d6 commit e9b6bea
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1713,7 +1713,8 @@ public final void setAttachmentNames(final String... names) {
this.alignAttachmentFormatters(formatters.length);
this.alignAttachmentFilters(formatters.length);
for (int i = 0; i < formatters.length; ++i) {
String name = names != null ? names[i] : null;
//names is non-null if formatters length is not zero
String name = names[i];
if (isEmpty(name)) {
name = toString(this.attachmentFormatters[i]);
}
Expand Down

0 comments on commit e9b6bea

Please sign in to comment.