Skip to content

Commit

Permalink
Simplify 'BooleanValue' print (#1180)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov authored and leebyron committed Jan 8, 2018
1 parent 9e52e12 commit 652c032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/language/printer.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const printDocASTReducer = {
isBlockString
? printBlockString(value, key === 'description')
: JSON.stringify(value),
BooleanValue: ({ value }) => JSON.stringify(value),
BooleanValue: ({ value }) => (value ? 'true' : 'false'),
NullValue: () => 'null',
EnumValue: ({ value }) => value,
ListValue: ({ values }) => '[' + join(values, ', ') + ']',
Expand Down

0 comments on commit 652c032

Please sign in to comment.