Skip to content

Commit

Permalink
fix: linting errors :(
Browse files Browse the repository at this point in the history
  • Loading branch information
tabrindle committed Feb 12, 2021
1 parent 1eee799 commit a5baf6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/response-generator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class ResponseGenerator {

if(schemaResponse.examples && Object.values(schemaResponse.examples).length) {
if(preferredExampleName && schemaResponse.examples[preferredExampleName] && schemaResponse.examples[preferredExampleName].value)
return schemaResponse.examples[preferredExampleName].value
return schemaResponse.examples[preferredExampleName].value;
if(Object.values(schemaResponse.examples)[0].value)
return Object.values(schemaResponse.examples)[0].value;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/response-generator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ describe('Response Generator', () => {
},
second: {
hello: 'goodbye'
},
}
}
};

Expand Down

0 comments on commit a5baf6a

Please sign in to comment.