Эх сурвалжийг харах

Decaf cleanup: unnecessary returns

Eric Mc Sween 5 жил өмнө
parent
commit
b74e7f6feb

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

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