emibcn / service-worker-updater

Found redundant literal in a logical expression JS-W1043
Anti-pattern
Minor
6 months ago6 months old
Logical expression with a literal operand will always evaluate to the same value
 5
 6  return {
 7    getItem: (key: string): string | null => {
 8      return store[key] || null 9    },
10    setItem: (key: string, value: string): void => {
11      store[key] = value