op/paint: remove unnecessary check in ImageOp

Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
This commit is contained in:
Pierre Curto
2021-11-10 15:49:14 +01:00
committed by Elias Naur
parent 9835cd5996
commit bcf3ff77ff
5 changed files with 33 additions and 8 deletions
+4
View File
@@ -145,6 +145,10 @@ func verifyRef(t *testing.T, img *image.RGBA, frame int) (ok bool) {
if frame != 0 {
path = filepath.Join("refs", t.Name()+"_"+strconv.Itoa(frame)+".png")
}
if *dumpImages {
saveImage(t, path, img)
return true
}
b, err := ioutil.ReadFile(path)
if err != nil {
t.Error("could not open ref:", err)