Просмотр исходного кода

Decaf cleanup: unnecessary returns

Eric Mc Sween 5 лет назад
Родитель
Сommit
b74e7f6feb
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      services/document-updater/app/js/DiffCodec.js

+ 1 - 2
services/document-updater/app/js/DiffCodec.js

@@ -9,7 +9,6 @@
 // Fix any style issues and re-enable lint.
 /*
  * decaffeinate suggestions:
- * DS102: Remove unnecessary code created because of implicit returns
  * DS207: Consider shorter variations of null checks
  * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
  */
@@ -51,6 +50,6 @@ module.exports = DiffCodec = {
         throw 'Unknown type'
       }
     }
-    return callback(null, ops)
+    callback(null, ops)
   }
 }