streaver/supercharged-storage

View on GitHub

Showing 1 of 1 total issue

Function isValidUnderlyingStorage has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  static isValidUnderlyingStorage(storage) {
    const hasValidGetItemFunction = typeof storage.getItem === 'function';
    const hasValidSetItemFunction = typeof storage.setItem === 'function';
    const hasValidRemoveItemFunction = typeof storage.removeItem === 'function';
    const hasValidClearFunction = typeof storage.clear === 'function';
Severity: Minor
Found in src/storage/base-storage.js - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language