[Pkg-javascript-commits] [node-ain2] 25/102: Fix JSLint warnings

Jonas Smedegaard js at moszumanska.debian.org
Tue Apr 29 11:59:46 UTC 2014


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

js pushed a commit to branch master
in repository node-ain2.

commit 43cf8cc79c416eb6a4c7951a3a6b764f2f746b0f
Author: Mark Wubben <mark at novemberborn.net>
Date:   Tue Sep 13 14:45:56 2011 +0100

    Fix JSLint warnings
---
 index.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/index.js b/index.js
index cd43e55..2fab4d6 100644
--- a/index.js
+++ b/index.js
@@ -51,7 +51,7 @@ function format(f) {
     return objects.join(' ');
   }
   
-  var i = 1;
+  i = 1;
   var args = arguments;
   var str = String(f).replace(formatRegExp, function(x) {
     switch (x) {
@@ -154,7 +154,7 @@ SysLogger.prototype.get = function() {
  */
 SysLogger.prototype._send = function(message, severity) {
     var client = dgram.createSocket('udp4');
-    var message = new Buffer('<' + (this.facility * 8 + severity) + '>' +
+    message = new Buffer('<' + (this.facility * 8 + severity) + '>' +
         getDate() + ' ' + this.hostname + ' ' + 
         this.tag + '[' + process.pid + ']:' + message);
     client.send(message,

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



More information about the Pkg-javascript-commits mailing list