fix CI: skip metadata tests when test_data is absent, use fmt.Fprintf in genevents
This commit is contained in:
1 parent
517c1685d8
commit
b725b801c1
3 files changed
+9
-1
No files matched your search
@@ -134,7 +134,7 @@ func generateTypeScript(groups []constGroup) string {
|
||||
}
|
||||
|
||||
for _, c := range g.Consts {
|
||||
b.WriteString(fmt.Sprintf(" %s: %q,\n", c.Name, c.Value))
|
||||
fmt.Fprintf(&b, " %s: %q,\n", c.Name, c.Value)
|
||||
}
|
||||
// Blank line between groups, but not after the last one.
|
||||
if i < len(groups)-1 {
|
||||
|
||||
Reference in new issue
Block a user