Browse Source

Fix lint error & add lint phase in travis CI

pull/307/head
Jerome Wu 6 years ago
parent
commit
c87746ec5d
  1. 4
      .travis.yml
  2. 2
      src/common/workerUtils.js

4
.travis.yml

@ -1,3 +1,7 @@ @@ -1,3 +1,7 @@
language: node_js
node_js:
- "lts/*" # Use LTS version
script:
- npm run lint
- npm test

2
src/common/workerUtils.js

@ -225,7 +225,7 @@ const handleRecognize = ({ @@ -225,7 +225,7 @@ const handleRecognize = ({
TessModule._free(ptr);
res.resolve({ files, ...result });
} catch (err) {
res.reject({ err: err });
res.reject({ err });
}
})
))

Loading…
Cancel
Save