mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-27 01:18:27 +00:00 
			
		
		
		
	Add an abstract json layout to make it's easier to change json library (#16528)
* Add an abstract json layout to make it's easier to change json library * Fix import * Fix import sequence * Fix blank lines * Fix blank lines
This commit is contained in:
		| @@ -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 ( | ||||
| @@ -57,7 +57,6 @@ type ( | ||||
|  | ||||
| // JSONPayload Marshals the MSTeamsPayload to json | ||||
| func (m *MSTeamsPayload) JSONPayload() ([]byte, error) { | ||||
| 	json := jsoniter.ConfigCompatibleWithStandardLibrary | ||||
| 	data, err := json.MarshalIndent(m, "", "  ") | ||||
| 	if err != nil { | ||||
| 		return []byte{}, err | ||||
|   | ||||
		Reference in New Issue
	
	Block a user