Skip to content

Commit

Permalink
Remove duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa committed Dec 25, 2024
1 parent e311971 commit 732166b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions cmd/plugin_install.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,16 +121,6 @@ var pluginInstallCmd = &cobra.Command{
return
}

// Backup the config file if requested
if backupConfig {
backupFilename := pluginConfigFile + BackupFileExt
if err := os.WriteFile(backupFilename, pluginsConfig, FilePermissions); err != nil {
cmd.Println("There was an error backing up the plugins configuration file: ", err)
return
}
cmd.Println("Backup completed successfully")
}

// Get the registered plugins from the plugins configuration file.
var localPluginsConfig map[string]any
if err := yamlv3.Unmarshal(pluginsConfig, &localPluginsConfig); err != nil {
Expand Down

0 comments on commit 732166b

Please sign in to comment.