title: Unreachable code error when I use a break in my switch statement
body: <p>I am wondering what I am doing wrong in my code.  I am trying to do the following:</p>
  
  <pre><code>switch (action.type) {
      case TYPES.ADD_TO_FAVORITES:
        if (state.faves.length &lt;= 10) {
          return assign({}, state, {
            faves: state.faves.concat(action.payload),
            full: false
          });
        } else {
          return assign({}, state, {
            faves: state.faves,
            full: true
          });
        }
      default:
        return state;
    }
  </code></pre>
  
  <p>My linter says to add a break before <code>default</code> case, but when I do that, it says <code>unreachable code</code>.</p>