revert creating object in loop

This commit is contained in:
tobiaskaminsky 2017-08-31 13:01:27 +02:00
parent 853350221f
commit d3754d156a
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

@ -2159,9 +2159,10 @@ public class FileDataStorageManager {
}
if (onlyImages) {
OCFile current;
Vector<OCFile> temp = new Vector<>();
for (int i=0; i < ocFiles.size(); i++) {
OCFile current = ocFiles.get(i);
current = ocFiles.get(i);
if (MimeTypeUtil.isImage(current)) {
temp.add(current);
}