all: implement staticcheck suggestions

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-07-19 10:47:17 +02:00
parent 39fd161bea
commit 6ab43aba3e
5 changed files with 2 additions and 7 deletions
+1 -2
View File
@@ -49,8 +49,7 @@ type faceCache struct {
}
func (c *Cache) lookup(font Font) *faceCache {
var f *faceCache
f = c.faceForStyle(font)
f := c.faceForStyle(font)
if f == nil {
font.Typeface = c.def
f = c.faceForStyle(font)