Skip to content

Commit

Permalink
fixes warning issue in export.js (#3436)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashish020202 authored Dec 15, 2023
1 parent ceff9bb commit 37a58ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/js-export/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ class MusicBlocks {
cname = cname === "Painter" ? this.turtle.painter : eval(cname);

returnVal =
args === undefined || args === [] ? cname[command]() : cname[command](...args);
args === undefined || (Array.isArray(args) && args.length === 0) ? cname[command]() : cname[command](...args);

}

const delay = this.turtle.waitTime;
Expand Down

0 comments on commit 37a58ae

Please sign in to comment.