Skip to content

Commit da34b5a

Browse files
committed
fix indentation
1 parent 500c3bf commit da34b5a

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/datasets/hub.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -101,18 +101,18 @@ def convert_to_parquet(
101101
except HfHubHTTPError:
102102
pass
103103

104-
if merge_pull_request:
105-
# NOTE: this will only merge the last PR in the case that push_to_hub decides to split them up.
106-
# see https://github.com/huggingface/datasets/discussions/7555
107-
api.merge_pull_request(
108-
repo_id,
109-
commit_info.pr_num,
110-
token=token,
111-
repo_type="dataset",
112-
)
113-
print(f"Pull request {pr_revision} merged.")
114-
else:
115-
print(f"You can find your PR to convert the dataset to Parquet at: {pr_url}")
104+
if merge_pull_request:
105+
# NOTE: this will only merge the last PR in the case that push_to_hub decides to split them up.
106+
# see https://github.com/huggingface/datasets/discussions/7555
107+
api.merge_pull_request(
108+
repo_id,
109+
commit_info.pr_num,
110+
token=token,
111+
repo_type="dataset",
112+
)
113+
print(f"Pull request {pr_revision} merged.")
114+
else:
115+
print(f"You can find your PR to convert the dataset to Parquet at: {pr_url}")
116116
return commit_info
117117

118118

0 commit comments

Comments
 (0)