Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Fix the type error "path.resolved is not a function" when the first parameter is a file #112

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/diff.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function main(opts, callback) {

parallel([
isFile(fileA) ?
readJSON.bind(null, path.resolved(cwd, fileA)) :
readJSON.bind(null, path.resolve(cwd, fileA)) :
gitShow.bind(null, fileA, cwd),
isFile(fileB) ?
readJSON.bind(null, path.resolve(cwd, fileB)) :
Expand Down