mirror of
https://github.com/kopia/kopia.git
synced 2025-12-23 22:57:50 -05:00
chore(ci): enable wsl_v5:err linter (#4928)
This commit is contained in:
@@ -84,7 +84,6 @@ linters:
|
||||
allow-whole-block: true
|
||||
disable:
|
||||
- assign
|
||||
- err
|
||||
- expr
|
||||
|
||||
default: all
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
|
||||
@@ -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 == "" {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user