Skip to content

Commit 5ae25c0

Browse files
committed
feat: remove legacy support for context object
1 parent 789ac00 commit 5ae25c0

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
@@ -90,8 +90,8 @@ const removeDriveLetter = (p) => p.replace(WINDOWS_DRIVE_LETTER_REGEXP, '');
9090
*/
9191
export const getFilePath = (context) => {
9292
const pathFromRoot = getPathFromRepositoryRoot(
93-
context.physicalFilename || context.getPhysicalFilename(),
94-
context.cwd || context.getCwd()
93+
context.physicalFilename,
94+
context.cwd
9595
);
9696

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

0 commit comments

Comments
 (0)