Skip to content

Commit 7a16bc0

Browse files
Undo changes in this file from last commit
1 parent d915cbb commit 7a16bc0

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

transfers/profiling.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from dataclasses import dataclass
2121
from datetime import datetime
2222
from pathlib import Path
23-
from typing import Callable, Iterable, Any, Optional
23+
from typing import Callable, Iterable, Any
2424

2525
from services.gcs_helper import get_storage_bucket
2626
from transfers.logger import logger
@@ -84,10 +84,8 @@ def run(
8484
return result, artifact
8585

8686

87-
def upload_profile_artifacts(artifacts: Optional[Iterable[ProfileArtifact]]) -> None:
87+
def upload_profile_artifacts(artifacts: Iterable[ProfileArtifact]) -> None:
8888
"""Upload generated profiling artifacts to the configured storage bucket."""
89-
if not artifacts:
90-
return
9189

9290
artifacts = list(artifacts)
9391
if not artifacts:

0 commit comments

Comments
 (0)