Title: Warning: unreachable code after return statement
Last modified: March 9, 2017

---

# Warning: unreachable code after return statement

 *  [KTS915](https://wordpress.org/support/users/kts915/)
 * (@kts915)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/warning-unreachable-code-after-return-statement/)
 * On line 13596 of `mammoth-editor.js` you have `eval(obj);`
 * Apart from `eval()` being a function that’s really frowned upon, this produces
   a warning in the browser console that this will never run because you have a `
   return` statement right above it.
 * Just deleting that line gets rid of the warning.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Michael Williamson](https://wordpress.org/support/users/michaelwilliamson/)
 * (@michaelwilliamson)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/warning-unreachable-code-after-return-statement/#post-8905845)
 * Is this causing you any problems in using the plugin, or is it just producing
   a warning?
 *  Thread Starter [KTS915](https://wordpress.org/support/users/kts915/)
 * (@kts915)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/warning-unreachable-code-after-return-statement/#post-8914776)
 * I don’t know. I was debugging problems on someone else’s site. I don’t think 
   he’d used the plugin for a while.
 * But surely you’re not hoping to keep this code?
 *  Plugin Author [Michael Williamson](https://wordpress.org/support/users/michaelwilliamson/)
 * (@michaelwilliamson)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/warning-unreachable-code-after-return-statement/#post-8923293)
 * That section of code isn’t in Mammoth itself: a bit of digging suggests it’s 
   a performance optimisation in Bluebird. Since it’s not actually causing any issues,
   looking into further isn’t a priority for me at the moment.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Warning: unreachable code after return statement’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/mammoth-docx-converter.svg)
 * [Mammoth .docx converter](https://wordpress.org/plugins/mammoth-docx-converter/)
 * [Support Threads](https://wordpress.org/support/plugin/mammoth-docx-converter/)
 * [Active Topics](https://wordpress.org/support/plugin/mammoth-docx-converter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mammoth-docx-converter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mammoth-docx-converter/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Michael Williamson](https://wordpress.org/support/users/michaelwilliamson/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/warning-unreachable-code-after-return-statement/#post-8923293)
 * Status: not resolved