mirror of
https://github.com/Jguer/yay
synced 2024-08-31 05:39:29 +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 {
|
||||
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)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in a new issue