@@ -116,7 +116,7 @@ func handleMessageEvent(state *internalState, data []byte) (err error) {
116116 response .ErrorString = err .Error ()
117117 }
118118
119- data , marshalError := json .Marshal (response )
119+ jsonData , marshalError := json .Marshal (response )
120120 if marshalError != nil {
121121 if response .Err () != nil {
122122 log .WithFields (logrus.Fields {
@@ -137,7 +137,7 @@ func handleMessageEvent(state *internalState, data []byte) (err error) {
137137 return
138138 }
139139
140- _ , _ = state .cli .Send (context .TODO (), calls .NonStreaming (calls .Message (data )))
140+ _ , _ = state .cli .Send (context .TODO (), calls .NonStreaming (calls .Message (jsonData )))
141141 if response .Err () != nil {
142142 log .WithFields (logrus.Fields {
143143 "commandName" : response .GetCommandName (),
@@ -191,7 +191,7 @@ func handleMessageEvent(state *internalState, data []byte) (err error) {
191191
192192 response := activeTask .Transition (cmd )
193193
194- data , marshalError := json .Marshal (response )
194+ jsonData , marshalError := json .Marshal (response )
195195 if marshalError != nil {
196196 if response .Err () != nil {
197197 log .WithFields (logrus.Fields {
@@ -212,7 +212,7 @@ func handleMessageEvent(state *internalState, data []byte) (err error) {
212212 return
213213 }
214214
215- _ , _ = state .cli .Send (context .TODO (), calls .NonStreaming (calls .Message (data )))
215+ _ , _ = state .cli .Send (context .TODO (), calls .NonStreaming (calls .Message (jsonData )))
216216 if response .Err () != nil {
217217 log .WithFields (logrus.Fields {
218218 "commandName" : response .GetCommandName (),
0 commit comments