Skip to content

Commit

Permalink
build: fix lint error, run lint on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeRalphson committed May 15, 2020
1 parent 50c0889 commit 5eb430b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -13,6 +13,7 @@ before_script:
- . ./bin/setflags.sh
- mkdir -p out
script:
- npm run lint
- npm test
- node widdershins -o out/petstore.md defs/petstore3.json
- node node_modules/mdv/mdv out/petstore.md
Expand Down
7 changes: 1 addition & 6 deletions lib/openapi3.js
Expand Up @@ -716,12 +716,7 @@ function convertInner(api, options) {
if (!options.omitHeader) content += '---\n' + yaml.stringify(header) + '\n---\n\n';
data = options.templateCallback('main', 'pre', data);
if (data.append) { content += data.append; delete data.append; }
try {
content += templates.main(data);
}
catch (ex) {
throw ex;
}
content += templates.main(data);
data = options.templateCallback('main', 'post', data);
if (data.append) { content += data.append; delete data.append; }
content = common.removeDupeBlankLines(content);
Expand Down

0 comments on commit 5eb430b

Please sign in to comment.