[Pkg-javascript-commits] [node-tap] 18/186: s/function/arrow/ in diags.js

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 1 16:40:39 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-tap.

commit 1ce97a56fdb4a8b224205c2bcc35e177f468d07e
Author: isaacs <i at izs.me>
Date:   Sun Aug 13 12:23:03 2017 -0700

    s/function/arrow/ in diags.js
---
 lib/diags.js | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/lib/diags.js b/lib/diags.js
index 6ed0079..b77417b 100644
--- a/lib/diags.js
+++ b/lib/diags.js
@@ -1,9 +1,5 @@
 'use strict'
-module.exports = diags
 
 const objToYaml = require('./obj-to-yaml.js')
 
-function diags (extra) {
-  const y = objToYaml(extra)
-  return y ? '\n' + y : y
-}
+module.exports = extra => (y => y ? '\n' + y : '')(objToYaml(extra))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-tap.git



More information about the Pkg-javascript-commits mailing list