[Groonga-commit] nroonga/nroonga at fa49df7 [master] Remove unnecessary toString()

Back to archive index

abetomo null+****@clear*****
Wed Sep 20 15:42:29 JST 2017


abetomo	2017-09-20 15:42:29 +0900 (Wed, 20 Sep 2017)

  New Revision: fa49df7cf59b74ec2fb5fe0cecef741393d5dd73
  https://github.com/nroonga/nroonga/commit/fa49df7cf59b74ec2fb5fe0cecef741393d5dd73

  Merged 64cbbc7: Merge pull request #26 from abetomo/fix_using_nan_new_instead_of_nan_copy_buffer

  Message:
    Remove unnecessary toString()
    
    It now returns a string.

  Modified files:
    lib/nroonga.js

  Modified: lib/nroonga.js (+1 -1)
===================================================================
--- lib/nroonga.js    2017-09-20 15:42:07 +0900 (6c17f4a)
+++ lib/nroonga.js    2017-09-20 15:42:29 +0900 (774e227)
@@ -27,7 +27,7 @@ const overrideOutputType = (optionsGiven, type) => {
 
 const formatResult = (result, command) => {
   if (command === 'dump') {
-    return result.toString('UTF-8')
+    return result
   }
   if (result.length > 0) {
     return JSON.parse(result)
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20170920/7fd05fdc/attachment-0001.htm 



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