mirror of
https://github.com/Jguer/yay
synced 2024-10-31 04:12:51 +00:00
If github fudges up don't save it
This commit is contained in:
parent
6206c105a7
commit
d9b793b695
1 changed files with 4 additions and 1 deletions
|
@ -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