Skip to content

Commit

Permalink
remove optional chaining added in renderer.js
Browse files Browse the repository at this point in the history
Downstream react storybook did not like the optional chaining added here. Changing it just to be safe

Diffs=
2489cb2b5 remove optional chaining added in renderer.js (#6366)

Co-authored-by: Zachary Plata <[email protected]>
  • Loading branch information
zplata and zplata committed Dec 15, 2023
1 parent dc898a0 commit bb3ba22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
eb8e0de93a7fed062b29c524a5ff7aabbe7f7711
2489cb2b55780cae9d636e8c8e6a2da1afa15108
2 changes: 1 addition & 1 deletion wasm/js/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ const offscreenWebGL = new (function () {
gl.shaderSource(shader, sourceCode);
gl.compileShader(shader);
const log = gl.getShaderInfoLog(shader);
if (log?.length > 0) {
if ((log || "").length > 0) {
throw log;
}
gl.attachShader(program, shader);
Expand Down

0 comments on commit bb3ba22

Please sign in to comment.