Skip to content

Commit

Permalink
refactor(): unnecessary type assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
vmasek committed Jan 24, 2020
1 parent 2730b4b commit d806a72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ function parseMethods(
formData: transformedParams
.filter(({ name, isFormParameter }) => name && isFormParameter)
.map(({ name, camelCaseName }) => ({
name: name!,
camelCaseName: camelCaseName || name!,
name: name,
camelCaseName: camelCaseName || name,
})),
// turn path interpolation `{this}` into string template `${args.this}
path: pathName.replace(
Expand Down

0 comments on commit d806a72

Please sign in to comment.