From 6a994a43005a66389b28da78b3ef7da9c13faf10 Mon Sep 17 00:00:00 2001 From: Joseph Zhang Date: Wed, 22 Jun 2016 16:26:06 -0700 Subject: [PATCH] Fix the type error "path.resolved is not a funciton" when the first parameter of diff is a file. --- bin/diff.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/diff.js b/bin/diff.js index 9fc6de6..5b1f6f0 100644 --- a/bin/diff.js +++ b/bin/diff.js @@ -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)) :