Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
thevilledev committed Sep 20, 2024
1 parent cc8f954 commit 7b08cb0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2058,7 +2058,7 @@ func TestFinalize(t *testing.T) {
}
default:
if eq, err := tc.isEqual(tc.test, tc.expt); !eq {
t.Errorf(err.Error())
t.Error(err.Error())
}
}
})
Expand Down
2 changes: 1 addition & 1 deletion dependency/catalog_datacenters.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (d *CatalogDatacentersQuery) Fetch(clients *ClientSet, opts *QueryOptions)

result, err := clients.Consul().Catalog().Datacenters()
if err != nil {
return nil, nil, errors.Wrapf(err, d.String())
return nil, nil, errors.Wrap(err, d.String())
}

// If the user opted in for skipping "down" datacenters, figure out which
Expand Down
2 changes: 1 addition & 1 deletion dependency/catalog_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (d *CatalogNodeQuery) Fetch(clients *ClientSet, opts *QueryOptions) (interf
var err error
name, err = clients.Consul().Agent().NodeName()
if err != nil {
return nil, nil, errors.Wrapf(err, d.String())
return nil, nil, errors.Wrap(err, d.String())
}
}

Expand Down
2 changes: 1 addition & 1 deletion dependency/vault_pki_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

// go:build ignore
//go:build ignore

package dependency

Expand Down
2 changes: 1 addition & 1 deletion template/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ func redactinator(used *dep.Set, b *Brain, err error) error {
}
}
}
return fmt.Errorf(strings.NewReplacer(pairs...).Replace(err.Error()))
return errors.New(strings.NewReplacer(pairs...).Replace(err.Error()))
}

// funcMapInput is input to the funcMap, which builds the template functions.
Expand Down

0 comments on commit 7b08cb0

Please sign in to comment.