Skip to content

Commit 6a02899

Browse files
committed
fixed linter issue
1 parent edc3a56 commit 6a02899

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: commands/upload/upload.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ func runProgramAction(pme *packagemanager.Explorer,
398398
// expected port change then run the detector.
399399
updatedUploadPort := f.NewFuture[*rpc.Port]()
400400
if uploadProperties.GetBoolean("upload.wait_for_upload_port") && watch != nil {
401-
go detectUploadPort(port, watch, uploadCtx, updatedUploadPort)
401+
go detectUploadPort(uploadCtx, port, watch, updatedUploadPort)
402402
} else {
403403
updatedUploadPort.Send(nil)
404404
go f.DiscardCh(watch)
@@ -522,7 +522,7 @@ func runProgramAction(pme *packagemanager.Explorer,
522522
return updatedUploadPort.Await(), nil
523523
}
524524

525-
func detectUploadPort(uploadPort *rpc.Port, watch <-chan *rpc.BoardListWatchResponse, uploadCtx context.Context, result f.Future[*rpc.Port]) {
525+
func detectUploadPort(uploadCtx context.Context, uploadPort *rpc.Port, watch <-chan *rpc.BoardListWatchResponse, result f.Future[*rpc.Port]) {
526526
log := logrus.WithField("task", "port_detection")
527527
log.Tracef("Detecting new board port after upload")
528528

0 commit comments

Comments
 (0)