We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d915cbb commit 7a16bc0Copy full SHA for 7a16bc0
1 file changed
transfers/profiling.py
@@ -20,7 +20,7 @@
20
from dataclasses import dataclass
21
from datetime import datetime
22
from pathlib import Path
23
-from typing import Callable, Iterable, Any, Optional
+from typing import Callable, Iterable, Any
24
25
from services.gcs_helper import get_storage_bucket
26
from transfers.logger import logger
@@ -84,10 +84,8 @@ def run(
84
return result, artifact
85
86
87
-def upload_profile_artifacts(artifacts: Optional[Iterable[ProfileArtifact]]) -> None:
+def upload_profile_artifacts(artifacts: Iterable[ProfileArtifact]) -> None:
88
"""Upload generated profiling artifacts to the configured storage bucket."""
89
- if not artifacts:
90
- return
91
92
artifacts = list(artifacts)
93
if not artifacts:
0 commit comments