Przeglądaj źródła

Decaf cleanup: capitalize class names

Eric Mc Sween 5 lat temu
rodzic
commit
dce5b8759a
1 zmienionych plików z 2 dodań i 7 usunięć
  1. 2 7
      services/document-updater/app/js/DiffCodec.js

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

@@ -1,10 +1,5 @@
-/* eslint-disable
-    camelcase,
-    handle-callback-err,
-    new-cap,
-*/
-const { diff_match_patch } = require('../lib/diff_match_patch')
-const dmp = new diff_match_patch()
+const { diff_match_patch: DMP } = require('../lib/diff_match_patch')
+const dmp = new DMP()
 
 
 module.exports = {
 module.exports = {
   ADDED: 1,
   ADDED: 1,