Skip to content

Commit

Permalink
Merge pull request #118 from pbs-data-solutions/refactor
Browse files Browse the repository at this point in the history
Refactor for simplification
  • Loading branch information
sanders41 authored Apr 21, 2024
2 parents 23ad659 + 0d639ee commit 3ebc99c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/services/organization_services.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,7 @@ pub async fn get_organization_service(pool: &PgPool, id: &str) -> Result<Option<
.fetch_optional(pool)
.await?;

if let Some(o) = organization {
Ok(Some(o))
} else {
Ok(None)
}
Ok(organization)
}

pub async fn get_organizations_service(pool: &PgPool) -> Result<Vec<Organization>> {
Expand Down

0 comments on commit 3ebc99c

Please sign in to comment.