You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by ku...@apache.org on 2024/07/22 03:14:54 UTC

(incubator-answer-plugins) 01/01: fix(cdn): s3 check upload err

This is an automated email from the ASF dual-hosted git repository.

kumfo pushed a commit to branch fix/cdn
in repository https://gitbox.apache.org/repos/asf/incubator-answer-plugins.git

commit 0409966aa00d2272114344216318a8c56eae9366
Author: kumfo <ku...@sifou.com>
AuthorDate: Mon Jul 22 11:14:42 2024 +0800

    fix(cdn): s3 check upload err
---
 cdn-s3/s3_client.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cdn-s3/s3_client.go b/cdn-s3/s3_client.go
index a304114..961a6f2 100644
--- a/cdn-s3/s3_client.go
+++ b/cdn-s3/s3_client.go
@@ -82,5 +82,5 @@ func (s *Client) PutObject(key, ext string, file io.ReadSeeker) (err error) {
 	if err != nil {
 		return fmt.Errorf("failed to put object, %s", err.Error())
 	}
-	return nil
+	return err
 }