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

Appearance settings

Commit 6a02899

Browse filesBrowse files
committed
fixed linter issue
1 parent edc3a56 commit 6a02899
Copy full SHA for 6a02899

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎commands/upload/upload.go

Copy file name to clipboardExpand all lines: commands/upload/upload.go
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.