From 36b160b706c766ed2762019ad7fdad99cb330e65 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Fri, 14 Jun 2019 19:11:03 -0400 Subject: [PATCH] Add TODO for multierror --- app.go | 1 + key/key.go | 1 + 2 files changed, 2 insertions(+) diff --git a/app.go b/app.go index a0864c4..8aeedce 100644 --- a/app.go +++ b/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 { diff --git a/key/key.go b/key/key.go index 14b0784..1cb3cf8 100644 --- a/key/key.go +++ b/key/key.go @@ -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)