🔥 Remove useless try/catch block

This commit is contained in:
Tiana Lemesle 2021-08-24 16:38:55 +02:00
parent bd54c6e02e
commit a7d426c0a6
1 changed files with 1 additions and 1 deletions

2
run.js
View File

@ -7,7 +7,7 @@ const
{ url } = require('./config.json'),
mainRustFilePath = joinPath(__dirname, './src-tauri/src/main.rs');
(async () => {
try { await new Promise(resolve => mkdir(joinPath(__dirname, './dist'), resolve)); } catch {}
await new Promise(resolve => mkdir(joinPath(__dirname, './dist'), resolve));
await new Promise(resolve => writeFile(joinPath(__dirname, './dist/index.html'), outdent `
<!DOCTYPE html>
<html lang="en">