Skip to content

Commit 4399a85

Browse files
remove redundant null check
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent e124bfb commit 4399a85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryRetryHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public static <V> V runWithRetries(
6464
if (runWithRetries != null) {
6565
retryContext = retryContext.with(runWithRetries);
6666
}
67-
try (Scope runWithRetriesScope = retryContext != null ? retryContext.makeCurrent() : null) {
67+
try (Scope runWithRetriesScope = retryContext.makeCurrent()) {
6868
// Suppressing should be ok as a workaraund. Current and only ResultRetryAlgorithm
6969
// implementation does not use response at all, so ignoring its type is ok.
7070
@SuppressWarnings("unchecked")

0 commit comments

Comments
 (0)