[Pkg-javascript-commits] [node-stack-utils] 29/67: return empty string instead of null if all internals
Bastien Roucariès
rouca at moszumanska.debian.org
Thu Sep 7 09:53:03 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-stack-utils.
commit 3cbe73fe615bf8d1adc3ec70ab6fdb21b7b33268
Author: Sam Verschueren <sam.verschueren at gmail.com>
Date: Fri Feb 5 08:15:15 2016 +0100
return empty string instead of null if all internals
---
index.js | 2 +-
test/test.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/index.js b/index.js
index 2bb7f81..bce9695 100644
--- a/index.js
+++ b/index.js
@@ -81,7 +81,7 @@ StackUtils.prototype.clean = function (stack) {
if (stack) {
return stack + '\n';
}
- return null;
+ return '';
};
StackUtils.prototype.captureString = function (limit, fn) {
diff --git a/test/test.js b/test/test.js
index 6ca7a4a..c13ce6d 100644
--- a/test/test.js
+++ b/test/test.js
@@ -56,7 +56,7 @@ test('clean: eliminates internals', t => {
test('clean: returns null if it is all internals', t => {
const stack = new StackUtils({internals: StackUtils.nodeInternals()});
- t.is(stack.clean(join(internalStack())), null);
+ t.is(stack.clean(join(internalStack())), '');
});
test('captureString: two redirects', t => {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-stack-utils.git
More information about the Pkg-javascript-commits
mailing list