believer/movies-graphql-postgres

View on GitHub
lib/services/movie.js

Summary

Maintainability
A
1 hr
Test Coverage

Function movie has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = async function movie (imdbId) {
  imdbId = imdbId.match(/tt\d+/)

  if (!imdbId || !imdbId[0]) {
    throw new Error('No IMDb ID')
Severity: Minor
Found in lib/services/movie.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status