Skip to content

Commit

Permalink
remove unneeded Boolean conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
chradek committed Mar 25, 2020
1 parent c6552cb commit fa88b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generators/operationGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ function getOperationParameterSignatures(

const operationRequests = operation.requests;
const overloadParameterDeclarations: ParameterWithDescription[][] = [];
const hasMultipleOverloads = Boolean(operationRequests.length > 1);
const hasMultipleOverloads = operationRequests.length > 1;

for (const request of operationRequests) {
const requestMediaType = request.mediaType;
Expand Down

0 comments on commit fa88b33

Please sign in to comment.