mirror of
https://github.com/siderolabs/talos.git
synced 2025-11-07 11:51:49 +01:00
chore: clean up unnecessary self assignment
There is no need that the value of err is assigned to itself. So removes this self assignment. Signed-off-by: Nanfei Chen <chennanfei@yeah.net> Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
This commit is contained in:
parent
a34a948985
commit
d04cf19788
@ -18,19 +18,13 @@ import (
|
|||||||
"github.com/siderolabs/talos/pkg/version"
|
"github.com/siderolabs/talos/pkg/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
// installCmd represents the install command.
|
// installCmd represents the installation command.
|
||||||
var installCmd = &cobra.Command{
|
var installCmd = &cobra.Command{
|
||||||
Use: "install",
|
Use: "install",
|
||||||
Short: "",
|
Short: "",
|
||||||
Long: ``,
|
Long: ``,
|
||||||
RunE: func(cmd *cobra.Command, args []string) (err error) {
|
RunE: func(cmd *cobra.Command, args []string) (err error) {
|
||||||
if err := runInstallCmd(); err != nil {
|
return runInstallCmd()
|
||||||
if err = (err); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user