fix golangcibot errors

This commit is contained in:
Stephan Müller 2019-04-18 00:18:09 +02:00
parent c2252e8114
commit c64ea633b3
No known key found for this signature in database
GPG Key ID: 4650F39E5B5E1894
2 changed files with 5 additions and 5 deletions

View File

@ -115,7 +115,9 @@ func getStoredDataFromGzip(value []byte) (*StoredData, error) {
}
storedData := &StoredData{}
json.Unmarshal(acmeData, &storedData)
if err := json.Unmarshal(acmeData, &storedData); err != nil {
return data, err
}
return storedData, nil
}

View File

@ -89,10 +89,8 @@ func main() {
if err := dump(dumpConfig, data); err != nil {
return err
}
} else {
if err := loop(dumpConfig, backend); err != nil {
return err
}
} else if err := loop(dumpConfig, backend); err != nil {
return err
}
return nil