Skip to content

Illegal return #147

@rmrice

Description

@rmrice

I'm running into a parsing issue (Illegal return) on line 249 of cli.js:

if (params.command === 'export') {
  return dyno.describeTable(function(err, desc) {
    if (err) {
      console.error(err);
      process.exit(1);
    }

    console.log(cleanDescription(desc));
    scan();
  });
}

I am pretty sure this is because return is being used outside of a function. This should probably be refactored.

cc @mapbox/atlas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions