From ecc02705d0079a19d3963cd6cc5fe3c78e7d2354 Mon Sep 17 00:00:00 2001 From: Cedric van Putten Date: Mon, 17 Jun 2019 22:10:55 +0200 Subject: [PATCH] refactor: remove replaced javascript --- @commitlint/top-level/src/index.js | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 @commitlint/top-level/src/index.js diff --git a/@commitlint/top-level/src/index.js b/@commitlint/top-level/src/index.js deleted file mode 100644 index a24e290f50..0000000000 --- a/@commitlint/top-level/src/index.js +++ /dev/null @@ -1,16 +0,0 @@ -import path from 'path'; -import up from 'find-up'; - -export default toplevel; - -// Find the next git root -// (start: string) => Promise -async function toplevel(cwd) { - const found = await up('.git', {cwd}); - - if (typeof found !== 'string') { - return found; - } - - return path.join(found, '..'); -}