weareinreach / InReach

Fallthrough of case statements found JS-0064
Anti-pattern
Major
3 occurrences in this check
Expected a 'break' statement before 'default'.
356								break
357							}
358						}
359						default: {360							break361						}362					}
363					return subsections
364				}, attributeCategories)
Expected a 'break' statement before 'default'.
 57					}
 58				}
 59			}
 60			default: 61				return t('close') 62		}
 63	})()
 64
Expected a 'break' statement before 'default'.
 73						if (strings) cacheWriteQueue.push({ lang, ns, strings })
 74						langResult.set(ns, strings)
 75					}
 76					default: { 77						log.info('fetching dynamic', ns) 78						const file = databaseFile 79						const strings = await fetchCrowdinDbKey(ns, file, lang) 80						if (strings) cacheWriteQueue.push({ lang, ns, strings }) 81						langResult.set(ns, strings) 82					} 83				}
 84			})
 85		)