Issue Bug Closed

#77539Javascript warning in Firefox 48 console: "unreachable code after return statement"

Kasper Ligaard 08/18/16, 14:04 updated 10/02/18, 11:07

Description

On line 263 in TYPO3.CMS/typo3/sysext/backend/Resources/Public/JavaScript/jsfunc.evalfield.js there is unreacheable code:

261 if (value=="") {
262    return "";
263    return 0;    // Why would I ever return a zero??? (20/12/01)
264 }

Solution: Remove line 263.

PS: According to the comment on line 263, it would seem the unreachable code has there for years.

Reviews 2