Skip to content

Commit

Permalink
Merge pull request #14006 from Snuffleupagus/writeValue-boolean
Browse files Browse the repository at this point in the history
[src/core/writer.js] Remove unnecessary string-wrapping for boolean values in `writeValue` (PR 13998 follow-up)
  • Loading branch information
Snuffleupagus authored Sep 12, 2021
2 parents 761519e + 5d578ea commit 8f72fc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/writer.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function writeValue(value, buffer, transform) {
} else if (typeof value === "number") {
buffer.push(numberToString(value));
} else if (typeof value === "boolean") {
buffer.push(`${value.toString()}`);
buffer.push(value.toString());
} else if (isDict(value)) {
writeDict(value, buffer, transform);
} else if (isStream(value)) {
Expand Down

0 comments on commit 8f72fc5

Please sign in to comment.