ソースを参照

Correction et simplification code

Loquicom 5 年 前
コミット
f590ad8f4c
1 ファイル変更3 行追加3 行削除
  1. 3 3
      src/finder/result.js

+ 3 - 3
src/finder/result.js

@@ -17,12 +17,12 @@ const result = class Result {
     }
 
     toString() {
-        if (this.formatter === null) {
-        } else {
+        if (this.formatter !== null) {
             return this.formatter.format(this);
         }
+        return JSON.stringify(this.coAuthors);
     }
 
 };
 
-module.exports = result;
+module.exports = result;