Title: Javascript Warning &#8220;unreachable code after return statement&#8221;
Last modified: January 12, 2018

---

# Javascript Warning “unreachable code after return statement”

 *  Resolved [doffine](https://wordpress.org/support/users/doffine/)
 * (@doffine)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/javascript-warning-unreachable-code-after-return-statement/)
 * Hello all together,
 * we get the following warning in Javascript console:
 * “unreachable code after return statement
    chosen.jquery.min.js:516:12”
 * How can this be fixed?

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

 *  [pavloborysenko](https://wordpress.org/support/users/pavloborysenko/)
 * (@pavloborysenko)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/javascript-warning-unreachable-code-after-return-statement/#post-9865344)
 * Hello
 * This does not affect the plugin or third-party software.
 * You can change code in file \wp-content\plugins\woocommerce-products-filter\index.
   php ( [https://c2n.me/3R3OYMW.png](https://c2n.me/3R3OYMW.png) ) AND ( [https://c2n.me/3R3P6HZ.png](https://c2n.me/3R3P6HZ.png))
 *  Thread Starter [doffine](https://wordpress.org/support/users/doffine/)
 * (@doffine)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/javascript-warning-unreachable-code-after-return-statement/#post-9865456)
 * Hi pavloborysenko,
 * why don’t you change this code in your plugin and release a new version?
    If 
   we change the code this change will be overwritten by future updates of your 
   plugin. We think you should take care that your plugin doesn’t cause any Warnings,
   shouldn’t you?
 *  [pavloborysenko](https://wordpress.org/support/users/pavloborysenko/)
 * (@pavloborysenko)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/javascript-warning-unreachable-code-after-return-statement/#post-9873035)
 * Hello
 * this warning is only for firefox – and does not affect the functional in any 
   way.
 * The author of a third-party library will fix this – and we update the library

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

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

 * ![](https://ps.w.org/woocommerce-products-filter/assets/icon-256x256.png?rev=
   2844301)
 * [HUSKY - Products Filter Professional for WooCommerce](https://wordpress.org/plugins/woocommerce-products-filter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-products-filter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-products-filter/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-products-filter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-products-filter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-products-filter/reviews/)

## Tags

 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 3 replies
 * 2 participants
 * Last reply from: [pavloborysenko](https://wordpress.org/support/users/pavloborysenko/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/javascript-warning-unreachable-code-after-return-statement/#post-9873035)
 * Status: resolved