From c7f1b7f5c5a92b0f33af1f7f47a304b056c5ca3c Mon Sep 17 00:00:00 2001 From: Ethan Donowitz Date: Thu, 5 May 2022 11:29:18 -0400 Subject: [PATCH] clean up errors --- syncstorage/src/db/transaction.rs | 3 +-- syncstorage/src/tokenserver/auth/oauth.rs | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/syncstorage/src/db/transaction.rs b/syncstorage/src/db/transaction.rs index ce4619064d..9763d0e680 100644 --- a/syncstorage/src/db/transaction.rs +++ b/syncstorage/src/db/transaction.rs @@ -135,8 +135,7 @@ impl DbTransactionPool { self.collection.clone(), self.bso_opt.clone(), ) - .await - .map_err(ApiError::from)?; + .await?; if let Some(precondition) = &self.precondition.opt { let status = match precondition { diff --git a/syncstorage/src/tokenserver/auth/oauth.rs b/syncstorage/src/tokenserver/auth/oauth.rs index 49868a2eac..78f2e33514 100644 --- a/syncstorage/src/tokenserver/auth/oauth.rs +++ b/syncstorage/src/tokenserver/auth/oauth.rs @@ -138,6 +138,5 @@ impl VerifyToken for RemoteVerifier { ..TokenserverError::resource_unavailable() })? .map_err(|_| TokenserverError::resource_unavailable())? - .map_err(Into::into) } }