Merge pull request #14006 from Snuffleupagus/writeValue-boolean

[src/core/writer.js] Remove unnecessary string-wrapping for boolean values in `writeValue` (PR 13998 follow-up)
This commit is contained in:
Jonas Jenwald 2021-09-12 17:05:33 +02:00 committed by GitHub
commit 8f72fc561e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)) {