Skip to content

Commit a1c2335

Browse files
umbynoscmaglie
authored andcommitted
optimize var name and remove old stuff
1 parent ca21798 commit a1c2335

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

monitor.go

+3-4
Original file line numberDiff line numberDiff line change
@@ -172,18 +172,17 @@ func (d *Server) describe() {
172172
d.outputChan <- messageError("describe", "Monitor not STARTed")
173173
return
174174
}
175-
var port_description *PortDescriptor
176-
port_description, err := d.impl.Describe()
175+
var portDescription *PortDescriptor
176+
portDescription, err := d.impl.Describe()
177177
if err != nil {
178178
d.outputChan <- messageError("hello", err.Error())
179179
return
180180
}
181181
d.outputChan <- &message{
182182
EventType: "describe",
183183
Message: "OK",
184-
PortDescription: port_description,
184+
PortDescription: portDescription,
185185
}
186-
d.initialized = true
187186
}
188187

189188
func (d *Server) configure(cmd string) {

0 commit comments

Comments
 (0)