mirror of
https://github.com/siderolabs/talos.git
synced 2025-11-02 09:21:13 +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"
|
||||
)
|
||||
|
||||
// installCmd represents the install command.
|
||||
// installCmd represents the installation command.
|
||||
var installCmd = &cobra.Command{
|
||||
Use: "install",
|
||||
Short: "",
|
||||
Long: ``,
|
||||
RunE: func(cmd *cobra.Command, args []string) (err error) {
|
||||
if err := runInstallCmd(); err != nil {
|
||||
if err = (err); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
return runInstallCmd()
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user