Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.

Commit e25caf4

Browse files
committed
chore: refactor parseAndRemovePartnerTokenProperty()
1 parent 73c0bce commit e25caf4

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcUrlUtility.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -797,12 +797,9 @@ private static String parseAndRemovePartnerTokenProperty(
797797

798798
if (matcher.find()) {
799799
String content = matcher.group(1).trim();
800+
urlBuilder.delete(matcher.start(), matcher.end());
800801
if (content.toUpperCase().startsWith("GPN:")) {
801-
urlBuilder.delete(matcher.start(), matcher.end());
802802
return " (" + content + ")";
803-
} else {
804-
urlBuilder.delete(matcher.start(), matcher.end());
805-
return null;
806803
}
807804
}
808805
return null;

0 commit comments

Comments
 (0)