Skip to content

Commit

Permalink
printer: use wrap util function in more places
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Feb 21, 2021
1 parent b6b2789 commit dfa3635
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/language/printer.js
Expand Up @@ -184,7 +184,7 @@ const printDocASTReducer: any = {
'union',
name,
join(directives, ' '),
types && types.length !== 0 ? '= ' + join(types, ' | ') : '',
wrap('= ', join(types, ' | ')),
],
' ',
),
Expand Down Expand Up @@ -253,7 +253,7 @@ const printDocASTReducer: any = {
'extend union',
name,
join(directives, ' '),
types && types.length !== 0 ? '= ' + join(types, ' | ') : '',
wrap('= ', join(types, ' | ')),
],
' ',
),
Expand Down

0 comments on commit dfa3635

Please sign in to comment.