Skip to content

Commit 5fb8f52

Browse files
author
huanghai4
committed
fix: modify the parameters for the sander.readFile function (conventional-changelog#448) - prettier lint fix
1 parent 71509c4 commit 5fb8f52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

@commitlint/read/src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ async function getEditFilePath(top, edit) {
5959
if (dotgitStats.isDirectory()) {
6060
editFilePath = path.join(top, '.git/COMMIT_EDITMSG');
6161
} else {
62-
const gitFile = await sander.readFile(dotgitPath, { encoding: 'utf-8' });
62+
const gitFile = await sander.readFile(dotgitPath, {encoding: 'utf-8'});
6363
const relativeGitPath = gitFile.replace('gitdir: ', '').replace('\n', '');
6464
editFilePath = path.resolve(top, relativeGitPath, 'COMMIT_EDITMSG');
6565
}

0 commit comments

Comments
 (0)