Skip to content

Commit

Permalink
feat: add unconvert check for golang-lint (#2554)
Browse files Browse the repository at this point in the history
Signed-off-by: Zechun Chen <zechun.chen@daocloud.io>
  • Loading branch information
Fish-pro committed Feb 10, 2023
1 parent 6b3dfad commit 05638fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@ linters:
- revive # replacement for golint
- staticcheck
- typecheck
- unconvert
- unused
- whitespace
2 changes: 1 addition & 1 deletion pkg/metrics/registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func newExporterSet(exporters map[string]StartExporter) *exporterSet {
func (es *exporterSet) String() string {
contents := make([]string, 0)
for k := range es.assignedExporters {
contents = append(contents, string(k))
contents = append(contents, k)
}
return fmt.Sprintf("%s", contents)
}
Expand Down

0 comments on commit 05638fd

Please sign in to comment.