Skip to content

Commit

Permalink
Merge pull request #6 from angad-z/main
Browse files Browse the repository at this point in the history
remove logging on failed smile header decoding
  • Loading branch information
saurav534 authored Apr 11, 2023
2 parents b63cdbc + b6efecd commit 76a0207
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions smile/smile.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
package smile

import (
"encoding/base64"
"encoding/json"

"log"

"github.com/gocollection/go-smile/decode"
"github.com/gocollection/go-smile/domain"
)
Expand All @@ -27,10 +24,6 @@ func DecodeToJSON(smile []byte) (string, error) {
func DecodeToObject(smile []byte) (interface{}, error) {
header, err := domain.DecodeHeader(smile)
if err != nil {
log.Printf(
"[go-smile] error decoding bytes. err: %s; base64-string: %s",
err.Error(), base64.StdEncoding.EncodeToString(smile),
)
return "", err
}

Expand Down

0 comments on commit 76a0207

Please sign in to comment.