Browse Source

codec: binc: by defaut, binc encodes as symbols only if explicitly configured via BincHandle.AsSymbols

Ugorji Nwoke 6 years ago
parent
commit
47ff638901
1 changed files with 1 additions and 1 deletions
  1. 1 1
      codec/binc.go

+ 1 - 1
codec/binc.go

@@ -327,7 +327,7 @@ func (e *bincEncDriver) EncodeString(v string) {
 }
 
 func (e *bincEncDriver) EncodeStringEnc(c charEncoding, v string) {
-	if e.e.c == containerMapKey && c == cUTF8 && (e.h.AsSymbols == 0 || e.h.AsSymbols == 1) {
+	if e.e.c == containerMapKey && c == cUTF8 && (e.h.AsSymbols == 1) {
 		e.EncodeSymbol(v)
 		return
 	}