Skip to content

Commit 23613bb

Browse files
committed
Removed unnecessary check
1 parent 1cbf861 commit 23613bb

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

image-sequence-viewer.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -185,14 +185,12 @@
185185
}, timeout);
186186
}
187187
};
188+
188189
imgElement.onerror = function() {
189190
if (!playbackStopped) {
190-
const currentSrc = imgElement.getAttribute("src");
191-
if (currentSrc) {
192-
log("error loading image at " + currentSrc);
193-
playbackStopped = true;
194-
imgElement.setAttribute("src", previousImageUrl);
195-
}
191+
log("error loading image at " + imgElement.getAttribute("src"));
192+
playbackStopped = true;
193+
imgElement.setAttribute("src", previousImageUrl);
196194
}
197195
}
198196

0 commit comments

Comments
 (0)