Skip to content

Commit

Permalink
removed unnecessary isEmpty check as suggested by reviewer
Browse files Browse the repository at this point in the history
  • Loading branch information
saschaszott authored Oct 24, 2023
1 parent fdacec0 commit 30a837f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private String generateBodyMail(Context context, List<IndexableObject> indexable
try {
ByteArrayOutputStream out = new ByteArrayOutputStream();
out.write("\n".getBytes(UTF_8));
if (indexableObjects != null && !indexableObjects.isEmpty()) {
if (indexableObjects != null) {
for (IndexableObject indexableObject : indexableObjects) {
out.write("\n".getBytes(UTF_8));
Item item = (Item) indexableObject.getIndexedObject();
Expand Down

0 comments on commit 30a837f

Please sign in to comment.