diff options
Diffstat (limited to 'vendor/github.com/stretchr/objx/conversions.go')
-rw-r--r-- | vendor/github.com/stretchr/objx/conversions.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/vendor/github.com/stretchr/objx/conversions.go b/vendor/github.com/stretchr/objx/conversions.go index ca1c2dec6..5e020f310 100644 --- a/vendor/github.com/stretchr/objx/conversions.go +++ b/vendor/github.com/stretchr/objx/conversions.go @@ -9,10 +9,6 @@ import ( "net/url" ) -// SignatureSeparator is the character that is used to -// separate the Base64 string from the security signature. -const SignatureSeparator = "_" - // JSON converts the contained object to a JSON string // representation func (m Map) JSON() (string, error) { @@ -44,7 +40,10 @@ func (m Map) Base64() (string, error) { } encoder := base64.NewEncoder(base64.StdEncoding, &buf) - _, _ = encoder.Write([]byte(jsonData)) + _, err = encoder.Write([]byte(jsonData)) + if err != nil { + return "", err + } _ = encoder.Close() return buf.String(), nil |