Make go vet happy

This commit is contained in:
Kovid Goyal 2025-09-08 10:08:37 +05:30
parent b7e5f66796
commit 0d2b44ce17
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View file

@ -297,7 +297,7 @@ func NewFontSpec(spec string, features map[string]FeatureData) (ans FontSpec, er
for _, item := range parts {
k, v, found := strings.Cut(item, "=")
if !found {
return ans, fmt.Errorf(fmt.Sprintf("The font specification %s is invalid as %s does not contain an =", spec, item))
return ans, fmt.Errorf("The font specification %s is invalid as %s does not contain an =", spec, item)
}
switch k {
case "family":

View file

@ -162,7 +162,7 @@ func main(cmd *cli.Command, o *Options, args []string) (rc int, err error) {
} else {
parts := strings.SplitN(opts.UseWindowSize, ",", 4)
if len(parts) != 4 {
return 1, fmt.Errorf("Invalid size specification: " + opts.UseWindowSize)
return 1, fmt.Errorf("Invalid size specification: %s", opts.UseWindowSize)
}
screen_size = &unix.Winsize{}
var t uint64