fix(app): drop a redundant match guard on the sse config lookup

This commit is contained in:
overtrue
2026-09-05 17:48:39 +08:00
parent bd70ca9f0e
commit 81c8c59dcf
2 changed files with 4 additions and 2 deletions
@@ -234,7 +234,9 @@ impl SourceBackend for GcsNativeSourceBackend {
url.query_pairs_mut().append_pair("maxResults", "1");
let request = self.request(Method::GET, url, HeaderMap::new()).await?;
let response = self.http.send(request, NO_ERROR_CODE_HEADER).await?;
read_text(response, MAX_JSON_BYTES).await.and_then(|body| parse_objects_list(&body))?;
read_text(response, MAX_JSON_BYTES)
.await
.and_then(|body| parse_objects_list(&body))?;
Ok(())
}
}
+1 -1
View File
@@ -309,7 +309,7 @@ fn classify_bucket_default_sse_lookup(
) -> S3Result<Option<(ServerSideEncryptionConfiguration, OffsetDateTime)>> {
match lookup {
Ok(config) => Ok(Some(config)),
Err(err) if err == StorageError::ConfigNotFound => Ok(None),
Err(StorageError::ConfigNotFound) => Ok(None),
Err(err) => {
let api_error = ApiError::from(err);
error!(