mirror of
https://github.com/taigrr/mg.git
synced 2026-04-02 03:28:42 -07:00
bump go version and fix invalid nil assignment
This commit is contained in:
2
go.mod
2
go.mod
@@ -1,3 +1,3 @@
|
|||||||
module github.com/taigrr/mg
|
module github.com/taigrr/mg
|
||||||
|
|
||||||
go 1.19
|
go 1.20
|
||||||
|
|||||||
@@ -46,7 +46,10 @@ func LoadMRConfig() (MRConfig, error) {
|
|||||||
}
|
}
|
||||||
text := string(f)
|
text := string(f)
|
||||||
lines := strings.Split(text, "\n")
|
lines := strings.Split(text, "\n")
|
||||||
config := MRConfig{}
|
config := MRConfig{
|
||||||
|
Aliases: make(map[string]string),
|
||||||
|
Repos: []Repo{},
|
||||||
|
}
|
||||||
|
|
||||||
length := -1
|
length := -1
|
||||||
mode := "default"
|
mode := "default"
|
||||||
|
|||||||
Reference in New Issue
Block a user