We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3af518a commit 4928889Copy full SHA for 4928889
tests/builders.py
@@ -200,12 +200,14 @@ def as_last_chunk(self) -> 'ArtifactUpdateEventBuilder':
200
return self
201
202
def build(self) -> TaskArtifactUpdateEvent:
203
- if not self.artifact:
204
- self.artifact = ArtifactBuilder().build()
+ artifact = self.artifact
+ if not artifact:
205
+ artifact = ArtifactBuilder().build()
206
return TaskArtifactUpdateEvent(
207
task_id=self.task_id,
208
context_id=self.context_id,
- artifact=self.artifact,
209
+ artifact=artifact,
210
append=self.append,
211
last_chunk=self.last_chunk,
212
)
213
+
0 commit comments