mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-27 06:52:50 -05:00
core: fix golang-ci lints and add a config
This commit is contained in:
@@ -93,7 +93,7 @@ func (m *Manager) Install(plugin Plugin) error {
|
||||
|
||||
if !repoExists {
|
||||
if err := m.gitClient.PlainClone(repoPath, plugin.Repo); err != nil {
|
||||
m.fs.RemoveAll(repoPath)
|
||||
m.fs.RemoveAll(repoPath) //nolint:errcheck
|
||||
return fmt.Errorf("failed to clone repository: %w", err)
|
||||
}
|
||||
} else {
|
||||
@@ -130,7 +130,7 @@ func (m *Manager) Install(plugin Plugin) error {
|
||||
}
|
||||
} else {
|
||||
if err := m.gitClient.PlainClone(pluginPath, plugin.Repo); err != nil {
|
||||
m.fs.RemoveAll(pluginPath)
|
||||
m.fs.RemoveAll(pluginPath) //nolint:errcheck
|
||||
return fmt.Errorf("failed to clone plugin: %w", err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user