mirror of
https://github.com/writefreely/writefreely
synced 2024-11-28 03:20:17 +00:00
Add TODO for multierror
This commit is contained in:
parent
f38a135bfa
commit
36b160b706
2 changed files with 2 additions and 0 deletions
1
app.go
1
app.go
|
@ -496,6 +496,7 @@ func GenerateKeyFiles(app *App) error {
|
|||
|
||||
// Generate keys
|
||||
initKeyPaths(app)
|
||||
// TODO: use something like https://github.com/hashicorp/go-multierror to return errors
|
||||
var keyErrs error
|
||||
err := generateKey(emailKeyPath)
|
||||
if err != nil {
|
||||
|
|
|
@ -27,6 +27,7 @@ type Keychain struct {
|
|||
// skipping any that already exist.
|
||||
func (keys *Keychain) GenerateKeys() error {
|
||||
// Generate keys only if they don't already exist
|
||||
// TODO: use something like https://github.com/hashicorp/go-multierror to return errors
|
||||
var err, keyErrs error
|
||||
if len(keys.EmailKey) == 0 {
|
||||
keys.EmailKey, err = GenerateBytes(EncKeysBytes)
|
||||
|
|
Loading…
Reference in a new issue