EternallyAscend / GoToolkits

Found variable declaration and assignment separately SCC-S1021
Anti-pattern
Major
2 years ago2 years old
should merge variable declaration with assignment on next line
 11
 12func TransferStringToJson(stringData string) (interface{}, error) {
 13	var interfaces interface{}
 14	var bytes []byte 15	bytes = []byte(stringData)
 16	err := json.Unmarshal(bytes, &interfaces)
 17	if nil != err {