internal/affine: Refactoring

This commit is contained in:
Hajime Hoshi 2021-07-25 22:10:38 +09:00
parent 1706d9436a
commit 18757cff16

View File

@ -106,11 +106,9 @@ func (c *ColorM) ScaleOnly() bool {
return false
}
}
if c.translate != nil {
for _, e := range c.translate {
if e != 0 {
return false
}
for _, e := range c.translate {
if e != 0 {
return false
}
}
return true