Make prettier happier

This commit is contained in:
Ronan Jouchet 2021-05-10 10:23:56 -04:00
parent 03325b45ce
commit d61a4e709a
3 changed files with 9 additions and 3 deletions

View File

@ -113,7 +113,9 @@ export function saveAppArgs(newAppArgs: any) {
} catch (err) {
// eslint-disable-next-line no-console
log.warn(
`WARNING: Ignored nativefier.json rewrital (${(err as Error).toString()})`,
`WARNING: Ignored nativefier.json rewrital (${(
err as Error
).toString()})`,
);
}
}

View File

@ -172,7 +172,9 @@ export async function prepareElectronApp(
try {
await copyFileOrDir(src, dest);
} catch (err) {
throw `Error copying electron app from ${src} to temp dir ${dest}. Error: ${(err as Error).toString()}`;
throw `Error copying electron app from ${src} to temp dir ${dest}. Error: ${(
err as Error
).toString()}`;
}
const appJsonPath = path.join(dest, '/nativefier.json');

View File

@ -19,7 +19,9 @@ async function tryToInferName(targetUrl: string): Promise<string> {
return pageTitle || DEFAULT_APP_NAME;
} catch (err) {
log.warn(
`Unable to automatically determine app name, falling back to '${DEFAULT_APP_NAME}'. Reason: ${(err as Error).toString()}`,
`Unable to automatically determine app name, falling back to '${DEFAULT_APP_NAME}'. Reason: ${(
err as Error
).toString()}`,
);
return DEFAULT_APP_NAME;
}