Skip to content

Commit 849ba03

Browse files
committed
Enhance builtin tools installation during Init
1 parent f938a58 commit 849ba03

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

commands/instances.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,7 @@ func Init(req *rpc.InitRequest, responseCallback func(r *rpc.InitResponse)) *sta
257257
},
258258
})
259259
} else {
260-
ctagsInstalled, err := instance.installToolIfMissing(ctagsTool, downloadCallback, taskCallback)
261-
toolHasBeenInstalled = toolHasBeenInstalled || ctagsInstalled
260+
toolHasBeenInstalled, err = instance.installToolIfMissing(ctagsTool, downloadCallback, taskCallback)
262261
if err != nil {
263262
s := status.Newf(codes.Internal, err.Error())
264263
responseCallback(&rpc.InitResponse{
@@ -278,8 +277,7 @@ func Init(req *rpc.InitRequest, responseCallback func(r *rpc.InitResponse)) *sta
278277
},
279278
})
280279
} else {
281-
serialDiscoveryToolInstalled, err := instance.installToolIfMissing(serialDiscoveryTool, downloadCallback, taskCallback)
282-
toolHasBeenInstalled = toolHasBeenInstalled || serialDiscoveryToolInstalled
280+
toolHasBeenInstalled, err = instance.installToolIfMissing(serialDiscoveryTool, downloadCallback, taskCallback)
283281
if err != nil {
284282
s := status.Newf(codes.Internal, err.Error())
285283
responseCallback(&rpc.InitResponse{

0 commit comments

Comments
 (0)