Skip to content

Commit f2bbdab

Browse files
committed
fix codacy
Signed-off-by: alperozturk <alper_ozturk@proton.me>
1 parent 07c5443 commit f2bbdab

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • library/src/androidTest/java/com/owncloud/android

library/src/androidTest/java/com/owncloud/android/FileIT.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,11 @@ public void testShareViaLinkSharees() {
135135
RemoteFile parentFolder = (RemoteFile) result.getData().get(0);
136136
assertEquals("/", parentFolder.getRemotePath());
137137

138-
for (int i = 1; i < result.getData().size(); i++) {
139-
if (result.getData().get(i) instanceof RemoteFile child) {
140-
if (path.equals(child.getRemotePath()) && child.getSharees() != null) {
141-
assertEquals(0, child.getSharees().length);
142-
}
138+
for (Object item : result.getData()) {
139+
if (item instanceof RemoteFile child &&
140+
path.equals(child.getRemotePath()) &&
141+
child.getSharees() != null) {
142+
assertEquals(1, child.getSharees().length);
143143
}
144144
}
145145
}

0 commit comments

Comments
 (0)