emibcn / service-worker-updater

Found complex boolean return JS-W1041
Anti-pattern
Major
6 months ago6 months old
Boolean return can be simplified
43
44    // If this looks like a URL for a resource, because it contains
45    // a file extension, skip.
46    if (url.pathname.match(fileExtensionRegexp)) {47      return false48    }49
50    // Return true to signal that we want to use the handler.
51    return true