[Groonga-commit] groonga/express-kotoumi [master] Add a missing space into between "+" and "value"

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Jan 16 16:30:14 JST 2013


Kouhei Sutou	2013-01-16 16:30:14 +0900 (Wed, 16 Jan 2013)

  New Revision: 4fc8e19c32c56e614a3d6e2aa3f5531bdcec8e10
  https://github.com/groonga/express-kotoumi/commit/4fc8e19c32c56e614a3d6e2aa3f5531bdcec8e10

  Log:
    Add a missing space into between "+" and "value"

  Modified files:
    lib/builders/rest-request.js

  Modified: lib/builders/rest-request.js (+2 -2)
===================================================================
--- lib/builders/rest-request.js    2013-01-16 15:59:08 +0900 (16742df)
+++ lib/builders/rest-request.js    2013-01-16 16:30:14 +0900 (e47d01f)
@@ -2,7 +2,7 @@ var NUMERIC = /^-?(?:[0-9]+(?:\.[0-9]+)?|\.[0-9]+)$/;
 function getNumericValue(params, key) {
   var value = params[key];
   if (!NUMERIC.test(value))
-    throw new Error(key + ': ' +value + ' is invalid number');
+    throw new Error(key + ': ' + value + ' is invalid number');
   return parseFloat(value);
 }
 
@@ -10,7 +10,7 @@ var INTEGER = /^-?[0-9]+$/;
 function getIntegerValue(params, key) {
   var value = params[key];
   if (!INTEGER.test(value))
-    throw new Error(key + ': ' +value + ' is invalid integer');
+    throw new Error(key + ': ' + value + ' is invalid integer');
   return parseInt(value);
 }
 
-------------- next part --------------
HTML����������������������������...
下載 



More information about the Groonga-commit mailing list
Back to archive index