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:
Nanfei Chen 2023-06-09 16:12:44 +08:00 committed by Andrey Smirnov
parent a34a948985
commit d04cf19788
No known key found for this signature in database
GPG Key ID: 7B26396447AB6DFD

View File

@ -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()
},
}