Skip to content

Commit 2bc08e2

Browse files
daiping8claude
authored andcommitted
fix: collapse nested if for clippy collapsible_if lint
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 2dfe8ae commit 2bc08e2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/daft-io/src/google_cloud.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,10 +324,10 @@ impl GCSClientWrapper {
324324
}
325325
};
326326

327-
if is_success {
328-
if let Some(is) = io_stats.as_ref() {
329-
is.mark_delete_requests(1);
330-
}
327+
if is_success
328+
&& let Some(is) = io_stats.as_ref()
329+
{
330+
is.mark_delete_requests(1);
331331
}
332332
Ok(())
333333
}

0 commit comments

Comments
 (0)