robot: Make linter happy

This commit is contained in:
Ettore Di Giacinto
2022-07-25 22:26:10 +00:00
committed by Itxaka
parent bc7c3b95dc
commit c8244f7dbd
4 changed files with 8 additions and 7 deletions

View File

@@ -1,8 +1,6 @@
package main
import (
//"fmt"
"context"
"encoding/json"
"fmt"
@@ -268,7 +266,7 @@ This command is meant to be used from the boot GRUB menu, but can be started man
Description: `
Starts c3os recovery mode.
In recovery mode a QR code will be printed out on the screen which should be used in conjuction with "c3os bridge". Pass by the QR code as snapshot
In recovery mode a QR code will be printed out on the screen which should be used in conjunction with "c3os bridge". Pass by the QR code as snapshot
to the bridge to connect over the machine which runs the "c3os recovery" command.
See also https://docs.c3os.io/after_install/recovery_mode/ for documentation.

View File

@@ -112,7 +112,7 @@ func bridge(c *cli.Context) error {
return err
}
go api.API(ctx, c.String("api"), 5*time.Second, 20*time.Second, e, nil, false)
go api.API(ctx, c.String("api"), 5*time.Second, 20*time.Second, e, nil, false) //nolint:errcheck
return e.Start(ctx)
}

View File

@@ -1,8 +1,6 @@
package main
import (
//"fmt"
"fmt"
"os"

View File

@@ -1,6 +1,7 @@
package main
import (
"fmt"
"os"
"github.com/c3os-io/c3os/internal/provider"
@@ -21,5 +22,9 @@ func main() {
// Expected output: string
factory.Add(bus.EventChallenge, provider.Challenge)
factory.Run(pluggable.EventType(os.Args[1]), os.Stdin, os.Stdout)
err := factory.Run(pluggable.EventType(os.Args[1]), os.Stdin, os.Stdout)
if err != nil {
fmt.Println(err)
os.Exit(1)
}
}