mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
slack JSON indent
This commit is contained in:
@@ -42,7 +42,7 @@ type SlackAttachment struct {
|
||||
func (p *SlackPayload) SetSecret(_ string) {}
|
||||
|
||||
func (p *SlackPayload) JSONPayload() ([]byte, error) {
|
||||
data, err := json.Marshal(p)
|
||||
data, err := json.MarshalIndent(p, "", " ")
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user