emibcn / service-worker-updater

Class methods should utilize this JS-0105
Anti-pattern
Minor
6 months ago6 months old
Expected 'this' to be used by class method 'isUpdateNeeded'
 9    // Do nothing
10  }
11
12  isUpdateNeeded(): boolean {13    return false
14  }
15}
Expected 'this' to be used by class method 'clear'
 5    // Do nothing
 6  }
 7
 8  clear(): void { 9    // Do nothing
10  }
11
Expected 'this' to be used by class method 'setUpdateIsNeeded'
 1import PersistenceService from './persistenceService'
 2
 3class NullPersistenceService implements PersistenceService {
 4  setUpdateIsNeeded(): void { 5    // Do nothing
 6  }
 7