Skip to content

Commit

Permalink
refactor(main): removed unnecessary console log
Browse files Browse the repository at this point in the history
  • Loading branch information
onderceylan committed Oct 25, 2019
1 parent 9987e39 commit 85e85a0
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import preLogger from './helpers/logger';
import { CLIOptions, Options } from './models/options';
import { Result } from './models/result';
import { LoggerFunction } from './models/logger';
import { SavedImage } from './models/image';

/**
Generates PWA assets based on a source input and saves generated images in the output folder provided
Expand Down Expand Up @@ -71,15 +70,7 @@ async function generateImages(
}

const output = flags.normalizeOutput(outputFolderPath);

let savedImages: SavedImage[] = [];

try {
savedImages = await puppets.generateImages(source, output, modOptions);
} catch (e) {
console.log('try/catch savedImages');
console.error(e);
}
const savedImages = await puppets.generateImages(source, output, modOptions);

const manifestJsonContent = meta.generateIconsContentForManifest(
savedImages,
Expand Down

0 comments on commit 85e85a0

Please sign in to comment.