mirror of
https://github.com/kopia/kopia.git
synced 2026-05-16 18:54:38 -04:00
Upgraded linter to 1.40.1 (#1072)
* tools: upgraded linter to 1.40.1 * lint: fixed nolintlint vionlations * lint: disabled tagliatele linter * lint: fixed remaining warnings
This commit is contained in:
@@ -52,6 +52,7 @@ func clearCacheDirectory(ctx context.Context, d string) error {
|
||||
log(ctx).Infof("Clearing cache directory: %v.", d)
|
||||
|
||||
err := retry.WithExponentialBackoffNoValue(ctx, "delete cache", func() error {
|
||||
// nolint:wrapcheck
|
||||
return os.RemoveAll(d)
|
||||
}, retry.Always)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user