ckr/url-shortener

View on GitHub
lambda/index.js

Summary

Maintainability
A
0 mins
Test Coverage

Function handler has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Wontfix

exports.handler = (event, context, cb) => {
  const s3 = new AWS.S3({ region: S3_Region });
  const url_long = event.url_long;
  const cdn_prefix = event.cdn_prefix;
  let retry = 0;    // try at most 3 times to create unique id
Severity: Minor
Found in lambda/index.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status