chore(ci): enable wsl_v5:err linter (#4928)

This commit is contained in:
Julio Lopez
2025-11-12 22:15:27 -08:00
committed by GitHub
parent 157c80e5e7
commit 80eda18f99
5 changed files with 0 additions and 5 deletions

View File

@@ -84,7 +84,6 @@ linters:
allow-whole-block: true
disable:
- assign
- err
- expr
default: all

View File

@@ -82,7 +82,6 @@ func (c *commandMount) run(ctx context.Context, rep repo.Repository) error {
FuseAllowNonEmptyMount: c.mountFuseAllowNonEmptyMount,
PreferWebDAV: c.mountPreferWebDAV,
})
if mountErr != nil {
return errors.Wrap(mountErr, "mount error")
}

View File

@@ -499,7 +499,6 @@ func (c *commandSnapshotCreate) getContentToSnapshot(ctx context.Context, dir st
func parseFullSource(str, hostname, username string) (snapshot.SourceInfo, error) {
sourceInfo, err := snapshot.ParseSourceInfo(str, hostname, username)
if err != nil {
return snapshot.SourceInfo{}, errors.Wrapf(err, "not a valid source %v", str)
} else if sourceInfo.Host == "" || sourceInfo.UserName == "" || sourceInfo.Path == "" {

View File

@@ -34,7 +34,6 @@ func (m Multiple) GetPassword(ctx context.Context, configFile string) (string, e
func (m Multiple) PersistPassword(ctx context.Context, configFile, password string) error {
for _, s := range m {
err := s.PersistPassword(ctx, configFile, password)
if err == nil {
return nil
}

View File

@@ -51,7 +51,6 @@ func TestMatchWithBaseDir(t *testing.T) {
}
matcher, err := NewWildcardMatcher(tc.pattern, BaseDir(tc.baseDir))
if err != nil {
t.Errorf("(%v) unexpected error returned for pattern %#v: %v", i, tc.pattern, err)
} else {