From 5ea4638aea60446e18adfc8b33fd39d02180ea9e Mon Sep 17 00:00:00 2001 From: Ronan Jouchet Date: Thu, 25 Feb 2021 18:19:30 -0500 Subject: [PATCH] Fix lint --- src/build/buildIcon.ts | 10 ++++------ src/build/buildNativefierApp.ts | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/build/buildIcon.ts b/src/build/buildIcon.ts index 7e4490a..2b79c5b 100644 --- a/src/build/buildIcon.ts +++ b/src/build/buildIcon.ts @@ -26,9 +26,7 @@ function iconIsIcns(iconPath: string): boolean { * Will convert a `.png` icon to the appropriate arch format (if necessary), * and return adjusted options */ -export async function convertIconIfNecessary( - options: AppOptions, -): Promise { +export function convertIconIfNecessary(options: AppOptions): void { if (!options.packager.icon) { log.debug('Option "icon" not set, skipping icon conversion.'); return; @@ -43,7 +41,7 @@ export async function convertIconIfNecessary( } try { - const iconPath = await convertToIco(options.packager.icon); + const iconPath = convertToIco(options.packager.icon); options.packager.icon = iconPath; return; } catch (error) { @@ -61,7 +59,7 @@ export async function convertIconIfNecessary( } try { - const iconPath = await convertToPng(options.packager.icon); + const iconPath = convertToPng(options.packager.icon); options.packager.icon = iconPath; return; } catch (error) { @@ -85,7 +83,7 @@ export async function convertIconIfNecessary( } try { - const iconPath = await convertToIcns(options.packager.icon); + const iconPath = convertToIcns(options.packager.icon); options.packager.icon = iconPath; return; } catch (error) { diff --git a/src/build/buildNativefierApp.ts b/src/build/buildNativefierApp.ts index 85a5928..d46390a 100644 --- a/src/build/buildNativefierApp.ts +++ b/src/build/buildNativefierApp.ts @@ -112,7 +112,7 @@ export async function buildNativefierApp( log.info('\nConverting icons...'); options.packager.dir = tmpPath; // const optionsWithTmpPath = { ...options, dir: tmpPath }; - await convertIconIfNecessary(options); + convertIconIfNecessary(options); await copyIconsIfNecessary(options, tmpPath); log.info(