Browse Source

use object literal shorthand on params if available

pull/8015/head
Arman Ozak 5 years ago
parent
commit
059d0aaf05
  1. 2
      npm/ng-packs/packages/schematics/src/models/method.ts

2
npm/ng-packs/packages/schematics/src/models/method.ts

@ -54,7 +54,7 @@ export class Body {
switch (bindingSourceId) {
case eBindingSourceId.Model:
case eBindingSourceId.Query:
this.params.push(`${paramName}: ${value}`);
this.params.push(paramName === value ? value : `${paramName}: ${value}`);
break;
case eBindingSourceId.Body:
this.body = value;

Loading…
Cancel
Save