mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 04:36:43 +00:00
chore: golangci-lint update.
This commit is contained in:
@ -56,7 +56,7 @@ func (op *OpRemove) Do() error {
|
||||
func remove(dir string, except ...string) error {
|
||||
var toRemove []string
|
||||
|
||||
if err := filepath.Walk(dir, func(path string, info os.FileInfo, err error) error {
|
||||
if err := filepath.Walk(dir, func(path string, _ os.FileInfo, _ error) error {
|
||||
for _, exception := range except {
|
||||
if path == exception || strings.HasPrefix(exception, path) || strings.HasPrefix(path, exception) {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user