Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

‎commands/upload/upload.go‎

Lines changed: 2 additions & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /