Skip to content

Commit

Permalink
removed
Browse files Browse the repository at this point in the history
  • Loading branch information
allan committed Jun 4, 2024
1 parent 4788224 commit c521a5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion compress/api_customer.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func (o *compress) GetCredentials() (*Credential, error) {
return nil, err
}
if obj.Response == "KO" {
return nil, fmt.Errorf("Error %s", obj.Message)
return nil, fmt.Errorf("error %s", obj.Message)
}
o.debugPrint(obj)
//
Expand Down
8 changes: 4 additions & 4 deletions compress/compress.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package compress

import (
"fmt"
"io"

"github.com/go-resty/resty/v2"
"github.com/minio/minio-go"
"io"
"net/url"
)

type ICompress interface {
Expand Down Expand Up @@ -57,7 +57,7 @@ func NewCompress(customerName, apiKey string, isDebug bool) (ICompress, error) {
c.restClient.SetBaseURL(TNGRM_BASE_URL)
c.restClient.SetDebug(isDebug)
//
cred, err := c.GetCredentials()
/*cred, err := c.GetCredentials()
if err != nil {
return nil, err
}
Expand All @@ -77,7 +77,7 @@ func NewCompress(customerName, apiKey string, isDebug bool) (ICompress, error) {
c.bucket = cred.S3Bucket
if err != nil {
return nil, err
}
}*/
return c, nil
}

Expand Down

0 comments on commit c521a5f

Please sign in to comment.