Skip to content
Snippets Groups Projects
Commit af55f9cb authored by sivan's avatar sivan
Browse files

fix unnecessary byte[]

parent e0f246d0
No related branches found
No related tags found
No related merge requests found
...@@ -182,7 +182,7 @@ func createQueryConstraint(con *constraintStruct, key string) *string { ...@@ -182,7 +182,7 @@ func createQueryConstraint(con *constraintStruct, key string) *string {
func convertJSONToStruct(jsonMsg *[]byte) (*parsedJSON, error) { func convertJSONToStruct(jsonMsg *[]byte) (*parsedJSON, error) {
jsonStruct := parsedJSON{} jsonStruct := parsedJSON{}
err := json.Unmarshal([]byte(*jsonMsg), &jsonStruct) err := json.Unmarshal(*jsonMsg, &jsonStruct)
if err != nil { if err != nil {
return nil, err return nil, err
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment