From 5fb8f526fdb21607a38d294f1dfcf356988480b9 Mon Sep 17 00:00:00 2001 From: huanghai4 Date: Sun, 28 Apr 2019 13:23:26 +0800 Subject: [PATCH] fix: modify the parameters for the sander.readFile function (#448) - prettier lint fix --- @commitlint/read/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/@commitlint/read/src/index.js b/@commitlint/read/src/index.js index 63594ac664..b9ae72e0b4 100644 --- a/@commitlint/read/src/index.js +++ b/@commitlint/read/src/index.js @@ -59,7 +59,7 @@ async function getEditFilePath(top, edit) { if (dotgitStats.isDirectory()) { editFilePath = path.join(top, '.git/COMMIT_EDITMSG'); } else { - const gitFile = await sander.readFile(dotgitPath, { encoding: 'utf-8' }); + const gitFile = await sander.readFile(dotgitPath, {encoding: 'utf-8'}); const relativeGitPath = gitFile.replace('gitdir: ', '').replace('\n', ''); editFilePath = path.resolve(top, relativeGitPath, 'COMMIT_EDITMSG'); }