History

SyntaxError: Illegal return statement

Simon Legner committed 2 years ago

Commit f44c8171 parent b3908591 file · +1 −9Browse files

Showing the changes to assets/javascripts/debug.js (1 of 1 file). Show all

Unified · Split

assets/javascripts/debug.js+1−9
@@ -9,14 +9,6 @@ · 8 unmodified lines
99 * DS209: Avoid top-level return
1010 * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
1111 */
12−if (
13− !(typeof console !== "undefined" && console !== null
14− ? console.time
15− : undefined) ||
16− !console.groupCollapsed
17−) {
18− return;
19−}
2012
2113 //
2214 // App
@@ -118,7 +110,7 @@ this.viewTree = function (view, level, visited) { · 95 unmodified lines
118110 `%c ${Array(level + 1).join(" ")}${
119111 view.constructor.name
120112 }: ${!!view.activated}`,
121− "color:" + ((view.activated && "green") || "red"),
113+ "color:" + ((view.activated && "green") || "red")
122114 );
123115
124116 for (var key of Object.keys(view || {})) {