[Pkg-javascript-commits] [node-module-deps] 430/444: Fixed https://github.com/substack/module-deps/pull/124#discussion_r98822099
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 15 09:48:20 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-module-deps.
commit 6390913792076161faf860a085298b46b3ff0602
Author: Martin Heidegger <martin.heidegger at gmail.com>
Date: Wed Feb 1 13:09:08 2017 +0900
Fixed https://github.com/substack/module-deps/pull/124#discussion_r98822099
---
index.js | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/index.js b/index.js
index 99b7ab7..2706025 100644
--- a/index.js
+++ b/index.js
@@ -387,12 +387,7 @@ Deps.prototype.walk = function (id, parent, cb) {
});
function persistentCacheFallback (dataAsString, cb) {
- var stream
- if (dataAsString) {
- stream = toStream(dataAsString)
- } else {
- stream = self.readFile(file, id, pkg)
- }
+ var stream = dataAsString ? toStream(dataAsString) : self.readFile(file, id, pkg);
stream
.pipe(self.getTransforms(fakePath || file, pkg, {
builtin: builtin,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-module-deps.git
More information about the Pkg-javascript-commits
mailing list