mirror of
https://github.com/Jguer/yay
synced 2024-09-14 13:51:12 +00:00
If github fudges up don't save it
This commit is contained in:
parent
6206c105a7
commit
d9b793b695
|
@ -152,7 +152,10 @@ func BranchInfo(pkgname string, owner string, repo string) (err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func SaveBranchInfo() error {
|
func SaveBranchInfo() error {
|
||||||
marshalledinfo, _ := json.Marshal(savedInfo)
|
marshalledinfo, err := json.Marshal(savedInfo)
|
||||||
|
if err != nil || string(marshalledinfo) == "null" {
|
||||||
|
return err
|
||||||
|
}
|
||||||
in, err := os.OpenFile(configfile, os.O_RDWR|os.O_CREATE, 0755)
|
in, err := os.OpenFile(configfile, os.O_RDWR|os.O_CREATE, 0755)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in a new issue