aboutsummaryrefslogtreecommitdiffstats
path: root/signer/storage
diff options
context:
space:
mode:
authorEli <elihanover@yahoo.com>2018-05-04 16:04:17 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-05-04 16:04:17 +0800
commit16f3c31773c6daf57afe718719821a897fa1a2c7 (patch)
tree5bb3deb47eb8e6bbde51c40caace5597912d21b2 /signer/storage
parent5b3af4c3d1455bc3e4a1c4aa514423683c8aaf7b (diff)
downloadgo-tangerine-16f3c31773c6daf57afe718719821a897fa1a2c7.tar
go-tangerine-16f3c31773c6daf57afe718719821a897fa1a2c7.tar.gz
go-tangerine-16f3c31773c6daf57afe718719821a897fa1a2c7.tar.bz2
go-tangerine-16f3c31773c6daf57afe718719821a897fa1a2c7.tar.lz
go-tangerine-16f3c31773c6daf57afe718719821a897fa1a2c7.tar.xz
go-tangerine-16f3c31773c6daf57afe718719821a897fa1a2c7.tar.zst
go-tangerine-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.go5
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)