Skip to content

Commit b80c880

Browse files
committed
refactor: use "physicalFilename" and "cwd" directly
1 parent e6d9ba6 commit b80c880

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/utils/filename.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ const removeDriveLetter = (p) => p.replace(WINDOWS_DRIVE_LETTER_REGEXP, '');
9292
*/
9393
const getFilePath = (context) => {
9494
const pathFromRoot = getPathFromRepositoryRoot(
95-
context.getPhysicalFilename(),
96-
context.getCwd()
95+
context.physicalFilename || context.getPhysicalFilename(),
96+
context.cwd || context.getCwd()
9797
);
9898

9999
return pipe(removeDriveLetter, toPosixPath)(pathFromRoot);

0 commit comments

Comments
 (0)