fix linter errors, enhance error handling, rename Id to ID in tpls

This commit is contained in:
Thomas von Dein
2024-01-25 18:59:20 +01:00
parent bebcd15ada
commit 39269d3790
16 changed files with 143 additions and 106 deletions

View File

@@ -26,6 +26,8 @@ import (
// doesn't show up in the coverage report for unknown reasons, so
// here's a single test for it
func TestWriteImage(t *testing.T) {
t.Parallel()
buf := []byte{1, 2, 3, 4, 5, 6, 7, 8}
file := "t/out/t.jpg"
@@ -33,5 +35,4 @@ func TestWriteImage(t *testing.T) {
if err != nil {
t.Errorf("Could not write mock image to %s: %s", file, err.Error())
}
}