mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 08:55:35 +00:00
all: implement staticcheck suggestions
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user