diff options
author | Eli <elihanover@yahoo.com> | 2018-05-04 16:04:17 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-05-04 16:04:17 +0800 |
commit | 16f3c31773c6daf57afe718719821a897fa1a2c7 (patch) | |
tree | 5bb3deb47eb8e6bbde51c40caace5597912d21b2 /signer/storage | |
parent | 5b3af4c3d1455bc3e4a1c4aa514423683c8aaf7b (diff) | |
download | dexon-16f3c31773c6daf57afe718719821a897fa1a2c7.tar.gz dexon-16f3c31773c6daf57afe718719821a897fa1a2c7.tar.zst dexon-16f3c31773c6daf57afe718719821a897fa1a2c7.zip |
signer: fix golint errors (#16653)
* signer/*: golint fixes
Specifically naming and comment formatting for documentation
* signer/*: fixed naming error crashing build
* signer/*: corrected error
* signer/core: fix tiny error whitespace
* signer/rules: fix test refactor
Diffstat (limited to 'signer/storage')
-rw-r--r-- | signer/storage/aes_gcm_storage.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/signer/storage/aes_gcm_storage.go b/signer/storage/aes_gcm_storage.go index 1ac347558..225276667 100644 --- a/signer/storage/aes_gcm_storage.go +++ b/signer/storage/aes_gcm_storage.go @@ -14,6 +14,7 @@ // You should have received a copy of the GNU General Public License // along with go-ethereum. If not, see <http://www.gnu.org/licenses/>. // + package storage import ( @@ -106,10 +107,8 @@ func (s *AESEncryptedStorage) readEncryptedStorage() (map[string]storedCredentia if os.IsNotExist(err) { // Doesn't exist yet return creds, nil - - } else { - log.Warn("Failed to read encrypted storage", "err", err, "file", s.filename) } + log.Warn("Failed to read encrypted storage", "err", err, "file", s.filename) } if err = json.Unmarshal(raw, &creds); err != nil { log.Warn("Failed to unmarshal encrypted storage", "err", err, "file", s.filename) |