Skip to content

Commit 2e5e140

Browse files
committed
Fix code for linting
1 parent 6129aac commit 2e5e140

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

commands/daemon/daemon.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ func (s *ArduinoCoreServerImpl) Upgrade(req *rpc.UpgradeRequest, stream rpc.Ardu
172172
return stream.Send(&rpc.UpgradeResponse{})
173173
}
174174

175+
// Create FIXMEDOC
175176
func (s *ArduinoCoreServerImpl) Create(_ context.Context, req *rpc.CreateRequest) (*rpc.CreateResponse, error) {
176177
res, status := commands.Create(req)
177178
if status != nil {

commands/instances.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,12 @@ func Create(req *rpc.CreateRequest) (*rpc.CreateResponse, *status.Status) {
152152
)
153153

154154
// Save instance
155-
instanceId := instancesCount
156-
instances[instanceId] = instance
155+
instanceID := instancesCount
156+
instances[instanceID] = instance
157157
instancesCount++
158158

159159
return &rpc.CreateResponse{
160-
Instance: &rpc.Instance{Id: instanceId},
160+
Instance: &rpc.Instance{Id: instanceID},
161161
}, nil
162162
}
163163

0 commit comments

Comments
 (0)