Skip to content

Commit b8f2baa

Browse files
committed
remove unnecessary api call
1 parent 913db97 commit b8f2baa

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

samples/snippets/label_job.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,5 @@ def label_job() -> None:
3232
job = client.query(sql, location=location, job_config=config)
3333
job_id = job.job_id
3434

35-
job = client.get_job(job_id) # API request
36-
3735
print(f"Added {job.labels} to {job_id}.")
3836
# [END bigquery_label_job]

samples/snippets/label_job_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
def test_label_job(
2525
capsys: "pytest.CaptureFixture[str]",
2626
) -> None:
27-
2827
label_job.label_job()
2928

3029
out, _ = capsys.readouterr()

0 commit comments

Comments
 (0)