mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-08 23:56:15 +02:00
appease golangci-lint (#2512)
This commit is contained in:
parent
4f57bf22c9
commit
e6274af015
@ -52,7 +52,7 @@ func (self *CmdObjBuilder) NewFromArgs(args []string) ICmdObj {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (self *CmdObjBuilder) NewShell(commandStr string) ICmdObj {
|
func (self *CmdObjBuilder) NewShell(commandStr string) ICmdObj {
|
||||||
quotedCommand := ""
|
var quotedCommand string
|
||||||
// Windows does not seem to like quotes around the command
|
// Windows does not seem to like quotes around the command
|
||||||
if self.platform.OS == "windows" {
|
if self.platform.OS == "windows" {
|
||||||
quotedCommand = strings.NewReplacer(
|
quotedCommand = strings.NewReplacer(
|
||||||
|
@ -23,7 +23,7 @@ func (gui *Gui) getCurrentBranch(path string) string {
|
|||||||
if err == nil {
|
if err == nil {
|
||||||
content := strings.TrimSpace(string(headFile))
|
content := strings.TrimSpace(string(headFile))
|
||||||
refsPrefix := "ref: refs/heads/"
|
refsPrefix := "ref: refs/heads/"
|
||||||
branchDisplay := ""
|
var branchDisplay string
|
||||||
if strings.HasPrefix(content, refsPrefix) {
|
if strings.HasPrefix(content, refsPrefix) {
|
||||||
// is a branch
|
// is a branch
|
||||||
branchDisplay = strings.TrimPrefix(content, refsPrefix)
|
branchDisplay = strings.TrimPrefix(content, refsPrefix)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user