Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Jul 22, 2024
1 parent ad82ec0 commit 07cce1d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ee/tabby-webserver/src/service/repository/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,7 @@ impl RepositoryService for RepositoryServiceImpl {
.list_repositories_with_filter(None, None, Some(true), None, None, None, None)
.await?;
repos
.iter()
.filter(|r| RepositoryConfig::canonicalize_url(&r.git_url) == git_url)
.next()
.iter().find(|r| RepositoryConfig::canonicalize_url(&r.git_url) == git_url)
.map(|r| r.source_id())
.ok_or_else(|| anyhow::anyhow!("No web source found for git_url: {}", git_url).into())
}

Check warning on line 194 in ee/tabby-webserver/src/service/repository/mod.rs

View check run for this annotation

Codecov / codecov/patch

ee/tabby-webserver/src/service/repository/mod.rs#L182-L194

Added lines #L182 - L194 were not covered by tests
Expand Down

0 comments on commit 07cce1d

Please sign in to comment.