Skip to content

Commit

Permalink
CARTO: Use null as default value for KeyValueObject (#8119)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixpalmer committed Sep 20, 2023
1 parent 3e6da50 commit 2c84b8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/carto/src/layers/schema/carto-tile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface KeyValueObject {

class KeyValueObjectReader {
static read(pbf, end?: number): KeyValueObject {
return pbf.readFields(KeyValueObjectReader._readField, {key: '', value: ''}, end);
return pbf.readFields(KeyValueObjectReader._readField, {key: '', value: null}, end);
}
static _readField(this: void, tag: number, obj: KeyValueObject, pbf) {
if (tag === 1) obj.key = pbf.readString();
Expand Down

0 comments on commit 2c84b8c

Please sign in to comment.