mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
Make go vet happy
This commit is contained in:
parent
b7e5f66796
commit
0d2b44ce17
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue