From 6a02899805be0a50cad78f6fc84ff9ba64d3caa8 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Wed, 2 Aug 2023 13:08:13 +0200 Subject: [PATCH] fixed linter issue --- commands/upload/upload.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/upload/upload.go b/commands/upload/upload.go index c3a0d12775f..b0dedee0c42 100644 --- a/commands/upload/upload.go +++ b/commands/upload/upload.go @@ -398,7 +398,7 @@ func runProgramAction(pme *packagemanager.Explorer, // expected port change then run the detector. updatedUploadPort := f.NewFuture[*rpc.Port]() if uploadProperties.GetBoolean("upload.wait_for_upload_port") && watch != nil { - go detectUploadPort(port, watch, uploadCtx, updatedUploadPort) + go detectUploadPort(uploadCtx, port, watch, updatedUploadPort) } else { updatedUploadPort.Send(nil) go f.DiscardCh(watch) @@ -522,7 +522,7 @@ func runProgramAction(pme *packagemanager.Explorer, return updatedUploadPort.Await(), nil } -func detectUploadPort(uploadPort *rpc.Port, watch <-chan *rpc.BoardListWatchResponse, uploadCtx context.Context, result f.Future[*rpc.Port]) { +func detectUploadPort(uploadCtx context.Context, uploadPort *rpc.Port, watch <-chan *rpc.BoardListWatchResponse, result f.Future[*rpc.Port]) { log := logrus.WithField("task", "port_detection") log.Tracef("Detecting new board port after upload")