Skip to content

Commit

Permalink
FMWK-558-compact-support
Browse files Browse the repository at this point in the history
- linter
  • Loading branch information
filkeith committed Sep 22, 2024
1 parent 8a48e49 commit 210578b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions io/encoding/asb/encode.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ func writeBinString(name, v string, w io.Writer) (int, error) {

func writeBinBytes(name string, compact bool, v []byte, w io.Writer) (int, error) {
var prefix []byte

switch compact {
case true:
prefix = makeCompactPrefix(binBytesTypePrefix)
Expand All @@ -275,6 +276,7 @@ func writeBinBytes(name string, compact bool, v []byte, w io.Writer) (int, error

func writeBinHLL(name string, compact bool, v a.HLLValue, w io.Writer) (int, error) {
var prefix []byte

switch compact {
case true:
prefix = makeCompactPrefix(binHLLTypePrefix)
Expand Down Expand Up @@ -307,6 +309,7 @@ func writeRawBlobBin(cdt *a.RawBlobValue, name string, compact bool, w io.Writer

func writeRawMapBin(cdt *a.RawBlobValue, name string, compact bool, w io.Writer) (int, error) {
var prefix, v []byte

switch compact {
case true:
prefix = makeCompactPrefix(binMapTypePrefix)
Expand All @@ -321,6 +324,7 @@ func writeRawMapBin(cdt *a.RawBlobValue, name string, compact bool, w io.Writer)

func writeRawListBin(cdt *a.RawBlobValue, name string, compact bool, w io.Writer) (int, error) {
var prefix, v []byte

switch compact {
case true:
prefix = makeCompactPrefix(binListTypePrefix)
Expand Down

0 comments on commit 210578b

Please sign in to comment.