mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 16:01:32 +01:00 
			
		
		
		
	slack JSON indent
This commit is contained in:
		
							parent
							
								
									f509c59ac1
								
							
						
					
					
						commit
						8e92d4352f
					
				| @ -42,7 +42,7 @@ type SlackAttachment struct { | |||||||
| func (p *SlackPayload) SetSecret(_ string) {} | func (p *SlackPayload) SetSecret(_ string) {} | ||||||
| 
 | 
 | ||||||
| func (p *SlackPayload) JSONPayload() ([]byte, error) { | func (p *SlackPayload) JSONPayload() ([]byte, error) { | ||||||
| 	data, err := json.Marshal(p) | 	data, err := json.MarshalIndent(p, "", "  ") | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
| 		return []byte{}, err | 		return []byte{}, err | ||||||
| 	} | 	} | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user