Skip to content

Commit

Permalink
no need to check contents contains md because it is a set
Browse files Browse the repository at this point in the history
  • Loading branch information
jixinchi authored and gaul committed Nov 14, 2023
1 parent 311a410 commit 9b01dbc
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -364,9 +364,7 @@ private SortedSet<StorageMetadata> extractCommonPrefixes(SortedSet<StorageMetada
o = prefix + o;
}
md.setName(o + delimiter);
if (!contents.contains(md)) {
contents.add(md);
}
contents.add(md);
}
return contents;
}
Expand Down

0 comments on commit 9b01dbc

Please sign in to comment.