chore: upgrade golangci-lint to v1.46.0 (#1373)

This commit is contained in:
Colin Adler
2022-05-10 16:04:23 -05:00
committed by GitHub
parent e0a7aec228
commit 97a95f1377
18 changed files with 32 additions and 84 deletions
+1 -1
View File
@@ -176,7 +176,7 @@ func (g *Generator) generateAll() (*TypescriptTypes, error) {
st, _ := obj.Type().Underlying().(*types.Struct)
codeBlock, err := g.buildStruct(obj, st)
if err != nil {
return nil, xerrors.Errorf("generate %q: %w", obj.Name())
return nil, xerrors.Errorf("generate %q: %w", obj.Name(), err)
}
structs[obj.Name()] = codeBlock
case *types.Basic:
+1 -1
View File
@@ -75,7 +75,7 @@ func main() {
"service": "coder",
"_dd.cireport_version": "2",
"test.traits": fmt.Sprintf(`{"database":["%s"], "category":["%s"]}`,
"test.traits": fmt.Sprintf(`{"database":[%q], "category":[%q]}`,
os.Getenv("DD_DATABASE"), os.Getenv("DD_CATEGORY")),
// Additional tags found in DataDog docs. See: