Skip to content

Commit

Permalink
code refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
lilthree committed Jan 3, 2018
1 parent b9b0fd6 commit 1e039f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Pod/Classes/SeafDir.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
mime:(NSString *)aMime;

@property (readonly, copy) NSArray *allItems;
@property (readwrite, copy) NSArray *items;
@property (readonly, copy) NSArray *items;
@property (readonly) NSArray *uploadFiles;
@property (readonly) BOOL editable;
@property (readonly) NSString *perm;
Expand Down
2 changes: 1 addition & 1 deletion Pod/Classes/SeafRepos.m
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ - (void)reSortItems
[self sortItems:repoGroup];
[allrepos addObjectsFromArray:repoGroup];
}
self.items = allrepos;
[self setValue:allrepos forKey:@"_items"];
}

- (void)reSortItemsByName
Expand Down
1 change: 1 addition & 0 deletions Pod/Classes/SeafTaskQueue.m
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ - (instancetype)init {
weakSelf.failedCount += 1;
}
} else {
weakSelf.failedCount = 0;
if (![weakSelf.completedTasks containsObject:task]) {
@synchronized (weakSelf.completedTasks) { // task succeeded, add to completedTasks
[weakSelf.completedTasks addObject:task];
Expand Down

0 comments on commit 1e039f3

Please sign in to comment.