Skip to content

Commit

Permalink
refactor: Provide a better name for the required index file.
Browse files Browse the repository at this point in the history
  • Loading branch information
RSeidelsohn committed Apr 12, 2023
1 parent d24e338 commit d907eac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/license-checker-rseidelsohn
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const args = require('../lib/args');
const exitProcessOrWarnIfNeeded = require('../lib/exitProcessOrWarnIfNeeded');
const fs = require('fs');
const helpers = require('../lib/licenseCheckerHelpers');
const licenseChecker = require('../lib/index');
const licenseCheckerMain = require('../lib/index');
const mkdirp = require('mkdirp');
const path = require('path');

Expand All @@ -21,7 +21,7 @@ const unknownArgs = Object.keys(parsedArgs).filter((arg) => !kownOptions.include

exitProcessOrWarnIfNeeded({ unknownArgs, parsedArgs, hasFailingArg });

licenseChecker.init(parsedArgs, function (err, foundLicensesJson) {
licenseCheckerMain.init(parsedArgs, function (err, foundLicensesJson) {
if (err) {
console.error('An error has occurred:');
console.error(err);
Expand All @@ -35,7 +35,7 @@ licenseChecker.init(parsedArgs, function (err, foundLicensesJson) {

if (parsedArgs.files || parsedArgs.out) {
if (parsedArgs.files) {
licenseChecker.asFiles(foundLicensesJson, parsedArgs.files);
licenseCheckerMain.asFiles(foundLicensesJson, parsedArgs.files);
}

if (parsedArgs.out) {
Expand Down

0 comments on commit d907eac

Please sign in to comment.