File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -46,14 +46,14 @@ func (s *arduinoCoreServerImpl) Debug(stream rpc.ArduinoCoreService_DebugServer)
46
46
}
47
47
48
48
// Grab the first message
49
- msg , err := stream .Recv ()
49
+ debugConfReqMsg , err := stream .Recv ()
50
50
if err != nil {
51
51
return err
52
52
}
53
53
54
54
// Ensure it's a config message and not data
55
- req := msg .GetDebugRequest ()
56
- if req == nil {
55
+ debugConfReq := debugConfReqMsg .GetDebugRequest ()
56
+ if debugConfReq == nil {
57
57
return errors .New (i18n .Tr ("First message must contain debug request, not data" ))
58
58
}
59
59
@@ -70,14 +70,14 @@ func (s *arduinoCoreServerImpl) Debug(stream rpc.ArduinoCoreService_DebugServer)
70
70
return command .GetData (), err
71
71
})
72
72
73
- pme , release , err := instances .GetPackageManagerExplorer (req .GetInstance ())
73
+ pme , release , err := instances .GetPackageManagerExplorer (debugConfReq .GetInstance ())
74
74
if err != nil {
75
75
return err
76
76
}
77
77
defer release ()
78
78
79
79
// Exec debugger
80
- commandLine , err := getCommandLine (req , pme )
80
+ commandLine , err := getCommandLine (debugConfReq , pme )
81
81
if err != nil {
82
82
return err
83
83
}
You can’t perform that action at this time.
0 commit comments