Skip to content

Commit

Permalink
clean up errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethan Donowitz committed May 5, 2022
1 parent fbb2efe commit c7f1b7f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions syncstorage/src/db/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion syncstorage/src/tokenserver/auth/oauth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,5 @@ impl VerifyToken for RemoteVerifier {
..TokenserverError::resource_unavailable()
})?
.map_err(|_| TokenserverError::resource_unavailable())?
.map_err(Into::into)
}
}

0 comments on commit c7f1b7f

Please sign in to comment.