mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
Make go vet happy
This commit is contained in:
@@ -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":
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user