message: switch + doc xnor
diff: @@ -186,13 +186,12 @@ const socketFilters: FilterDefinition[] = [
  filter:
  ({ filterValue }) =>
  (item: DimItem) => {
  - if (filterValue === 'deepsight') {
  + switch (filterValue) {
  + case 'deepsight':
  return isDeepsight(item);
  - }
  - if (filterValue === 'complete') {
  + case 'complete':
  return isDeepsight(item, true);
  - }
  - if (filterValue === 'incomplete') {
  + case 'incomplete':
  return isDeepsight(item, false);
  }
  },
  @@ -206,7 +205,7 @@ function isDeepsight(item: DimItem, checkComplete: Boolean | null = null) {
  item.bucket.inWeapons &&
  item.sockets?.allSockets.find((s) => {
  const plugDef = s.plugged?.plugDef;
  - const complete =
  + const complete = // always true for null, checkcomplete XNOR complete
  checkComplete === null
  ? true
  : checkComplete
  