mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-20 03:51:00 +00:00
fix conditional logic
This commit is contained in:
parent
f342a2a54b
commit
15c2556e06
@ -18,11 +18,10 @@ export class FolderService {
|
|||||||
|
|
||||||
getFolderStatusInOrder(observer: Subscriber<Folder>, startIndex: number) {
|
getFolderStatusInOrder(observer: Subscriber<Folder>, startIndex: number) {
|
||||||
// Return if there aren't any folders at the index
|
// Return if there aren't any folders at the index
|
||||||
if (startIndex >= (this.folders.length - 1)) {
|
if (startIndex >= (this.folders.length)) {
|
||||||
observer.complete();
|
observer.complete();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const folder: Folder = this.folders[startIndex];
|
const folder: Folder = this.folders[startIndex];
|
||||||
startIndex = startIndex + 1;
|
startIndex = startIndex + 1;
|
||||||
this.dbStatusService.getFolderStatus(folder.id).subscribe(
|
this.dbStatusService.getFolderStatus(folder.id).subscribe(
|
||||||
|
Loading…
Reference in New Issue
Block a user