Skip to content

Commit

Permalink
Add parantheses around the second ternary expression
Browse files Browse the repository at this point in the history
  • Loading branch information
sachindshinde committed Apr 13, 2022
1 parent f274523 commit da98f2f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internals-js/src/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -949,9 +949,10 @@ export class CoreFeature {
const elementImport = this.imports.find((i) => i.name.charAt(0) === '@' && i.name.slice(1) === name);
return elementImport
? (elementImport.as?.slice(1) ?? name)
: name === this.url.name
? this.nameInSchema
: this.nameInSchema + '__' + name;
: (name === this.url.name
? this.nameInSchema
: this.nameInSchema + '__' + name
);
}

typeNameInSchema(name: string): string {
Expand Down

0 comments on commit da98f2f

Please sign in to comment.