matrix-art

An image gallery for Matrix
git clone git://archive.git.mtrnord.blog/MTRNord/matrix-art.git
Log | Files | Refs | README | LICENSE

commit 609e816170169aa2c6c10e6704b7b5fa3fbdd33d
parent 505a9cd4ae6b67c17b1cc71ccee828370e746795
Author: MTRNord <mtrnord1@gmail.com>
Date:   Fri, 11 Feb 2022 16:34:43 +0100

Remove catch which would hide error

Diffstat:
Mhelpers/storage.ts | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/helpers/storage.ts b/helpers/storage.ts @@ -12,10 +12,8 @@ export default class Storage { await fs.promises.stat(dir); await fs.promises.stat(dir_with_prefix); } catch { - try { - await fs.promises.mkdir(dir); - await fs.promises.mkdir(dir_with_prefix); - } catch { console.log("race while folder was checked"); } + await fs.promises.mkdir(dir); + await fs.promises.mkdir(dir_with_prefix); } return new Storage(prefix, dir); } else {