Skip to content

Commit 082a0f8

Browse files
authored
Remove use of optional chaining in client (#253)
1 parent c1fd920 commit 082a0f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,15 +163,15 @@ class Replicate {
163163
}
164164

165165
// We handle the cancel later in the function.
166-
if (signal?.aborted) {
166+
if (signal && signal.aborted) {
167167
return true; // stop polling
168168
}
169169

170170
return false; // continue polling
171171
}
172172
);
173173

174-
if (signal?.aborted) {
174+
if (signal && signal.aborted) {
175175
prediction = await this.predictions.cancel(prediction.id);
176176
}
177177

0 commit comments

Comments
 (0)