From e2cc2e949bb37ef0ef475af2daf296dfc64406f9 Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Fri, 26 Apr 2024 14:19:41 -0700 Subject: [PATCH] update --- .../src/service/repository/github_repository.rs | 5 +---- .../src/service/repository/gitlab_repository.rs | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/ee/tabby-webserver/src/service/repository/github_repository.rs b/ee/tabby-webserver/src/service/repository/github_repository.rs index b7ec3d68354c..43c7ca5e8a77 100644 --- a/ee/tabby-webserver/src/service/repository/github_repository.rs +++ b/ee/tabby-webserver/src/service/repository/github_repository.rs @@ -141,10 +141,7 @@ impl GithubRepositoryService for GithubRepositoryProviderServiceImpl { let mut repos = self .list_repositories(vec![], None, None, None, None) - .await? - .into_iter() - .filter(|x| x.active) - .collect(); + .await?; deduplicate_github_repositories(&mut repos); diff --git a/ee/tabby-webserver/src/service/repository/gitlab_repository.rs b/ee/tabby-webserver/src/service/repository/gitlab_repository.rs index 107a010146af..dac9089a4b68 100644 --- a/ee/tabby-webserver/src/service/repository/gitlab_repository.rs +++ b/ee/tabby-webserver/src/service/repository/gitlab_repository.rs @@ -141,10 +141,7 @@ impl GitlabRepositoryService for GitlabRepositoryProviderServiceImpl { let mut repos = self .list_repositories(vec![], None, None, None, None) - .await? - .into_iter() - .filter(|x| x.active) - .collect(); + .await?; deduplicate_gitlab_repositories(&mut repos);