@@ -157,7 +157,7 @@ $root.vector_tile = (function() {
157157 if ( ! options ) {
158158 options = { } ;
159159 }
160- var dst = impl . create ( src , this , options ) || null ;
160+ var dst = impl . create ( src , this , options ) ;
161161 if ( dst ) {
162162 if ( src . layers && src . layers . length ) {
163163 dst . layers = [ ] ;
@@ -445,7 +445,7 @@ $root.vector_tile = (function() {
445445 if ( ! options ) {
446446 options = { } ;
447447 }
448- var dst = impl . create ( src , this , options ) || null ;
448+ var dst = impl . create ( src , this , options ) ;
449449 if ( dst ) {
450450 if ( dst . stringValue === undefined && options . defaults ) {
451451 dst . stringValue = "" ;
@@ -456,13 +456,13 @@ $root.vector_tile = (function() {
456456 if ( dst . doubleValue === undefined && options . defaults ) {
457457 dst . doubleValue = 0 ;
458458 }
459- if ( ! ( src . intValue === undefined || src . intValue === null ) || options . defaults ) {
459+ if ( src . intValue !== undefined && src . intValue !== null || options . defaults ) {
460460 dst . intValue = impl . longs ( src . intValue , 0 , 0 , false , options ) ;
461461 }
462- if ( ! ( src . uintValue === undefined || src . uintValue === null ) || options . defaults ) {
462+ if ( src . uintValue !== undefined && src . uintValue !== null || options . defaults ) {
463463 dst . uintValue = impl . longs ( src . uintValue , 0 , 0 , true , options ) ;
464464 }
465- if ( ! ( src . sintValue === undefined || src . sintValue === null ) || options . defaults ) {
465+ if ( src . sintValue !== undefined && src . sintValue !== null || options . defaults ) {
466466 dst . sintValue = impl . longs ( src . sintValue , 0 , 0 , false , options ) ;
467467 }
468468 if ( dst . boolValue === undefined && options . defaults ) {
@@ -721,9 +721,9 @@ $root.vector_tile = (function() {
721721 if ( ! options ) {
722722 options = { } ;
723723 }
724- var dst = impl . create ( src , this , options ) || null ;
724+ var dst = impl . create ( src , this , options ) ;
725725 if ( dst ) {
726- if ( ! ( src . id === undefined || src . id === null ) || options . defaults ) {
726+ if ( src . id !== undefined && src . id !== null || options . defaults ) {
727727 dst . id = impl . longs ( src . id , 0 , 0 , true , options ) ;
728728 }
729729 if ( src . tags && src . tags . length ) {
@@ -736,7 +736,7 @@ $root.vector_tile = (function() {
736736 dst . tags = [ ] ;
737737 }
738738 }
739- if ( ! ( src . type === undefined || src . type === null ) || options . defaults ) {
739+ if ( src . type !== undefined || options . defaults ) {
740740 dst . type = impl . enums ( src . type , undefined , types [ 2 ] , options ) ;
741741 }
742742 if ( src . geometry && src . geometry . length ) {
@@ -1017,7 +1017,7 @@ $root.vector_tile = (function() {
10171017 if ( ! options ) {
10181018 options = { } ;
10191019 }
1020- var dst = impl . create ( src , this , options ) || null ;
1020+ var dst = impl . create ( src , this , options ) ;
10211021 if ( dst ) {
10221022 if ( dst . version === undefined && options . defaults ) {
10231023 dst . version = 1 ;
0 commit comments