refactor: cleanup husky install implementation
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 27 Nov 2023 17:52:26 +0000 (18:52 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 27 Nov 2023 17:52:26 +0000 (18:52 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
prepare.mjs

index 768ba5bb0626ddeee91a36cdac76c35fdcf9b746..d6441fb0b130c869e63b505c3b74cb819f8842f8 100644 (file)
@@ -7,7 +7,5 @@ if (isCIEnvironment === false) {
     .then(({ install }) => {
       return install()
     })
-    .catch(err => {
-      console.error(err)
-    })
+    .catch(console.error)
 }