1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-04-15 11:56:37 +02:00
Jesse Duffield e18e81f5eb don't pass single commands directly to RunCommand (or equivalent function)
when it contains percentages.

This is a really strange one. It's a linting warning in my editor
and it doesn't stop me from compiling, but it breaks `go test`.

A basic file to reproduce what I'm talking about:

package main

import "fmt"

func main() {
	notSprintf("test %s") // compiler complains here thinking %s needs a corresponding argument
}

func notSprintf(formatStr string, formatArgs ...interface{}) string {
	if formatArgs != nil {
		return formatStr
	}
	return fmt.Sprintf(formatStr, formatArgs...)
}
2019-11-21 22:07:14 +11:00
..
2019-11-21 22:07:14 +11:00
2019-11-21 22:07:14 +11:00
2019-11-21 22:07:14 +11:00
2019-03-02 13:39:09 +11:00
2019-01-16 18:06:11 +11:00
2019-07-27 11:05:23 +10:00
2019-11-21 22:07:14 +11:00
2019-11-21 22:07:14 +11:00
2019-03-02 13:39:09 +11:00
2019-11-21 22:07:14 +11:00
2019-11-21 22:07:14 +11:00
2019-07-14 14:24:59 +10:00
2019-11-21 22:07:14 +11:00