Skip to content

Commit

Permalink
feat: remove legacy support for context object
Browse files Browse the repository at this point in the history
  • Loading branch information
dukeluo committed May 31, 2024
1 parent 789ac00 commit 5ae25c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/utils/filename.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ const removeDriveLetter = (p) => p.replace(WINDOWS_DRIVE_LETTER_REGEXP, '');
*/
export const getFilePath = (context) => {
const pathFromRoot = getPathFromRepositoryRoot(
context.physicalFilename || context.getPhysicalFilename(),
context.cwd || context.getCwd()
context.physicalFilename,
context.cwd
);

return pipe(removeDriveLetter, toPosixPath)(pathFromRoot);
Expand Down

0 comments on commit 5ae25c0

Please sign in to comment.