diff options
Diffstat (limited to 'services/webhook/feishu.go')
-rw-r--r-- | services/webhook/feishu.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/services/webhook/feishu.go b/services/webhook/feishu.go index b280e67759..4428d54f92 100644 --- a/services/webhook/feishu.go +++ b/services/webhook/feishu.go @@ -10,8 +10,8 @@ import ( "code.gitea.io/gitea/models" "code.gitea.io/gitea/modules/git" + "code.gitea.io/gitea/modules/json" api "code.gitea.io/gitea/modules/structs" - jsoniter "github.com/json-iterator/go" ) type ( @@ -37,7 +37,6 @@ func newFeishuTextPayload(text string) *FeishuPayload { // JSONPayload Marshals the FeishuPayload to json func (f *FeishuPayload) JSONPayload() ([]byte, error) { - json := jsoniter.ConfigCompatibleWithStandardLibrary data, err := json.MarshalIndent(f, "", " ") if err != nil { return []byte{}, err |