aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/key_store_plain.go
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-01-20 05:12:22 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-01-20 05:12:22 +0800
commitd48140cab39923bb06bb4df8667efd2df000d17b (patch)
tree10ede9b41cffb810992dbc7d3d32b9737a34fb08 /crypto/key_store_plain.go
parent3cf038f300950c5a14b99fb0249ec09f663ef6af (diff)
downloadgo-tangerine-d48140cab39923bb06bb4df8667efd2df000d17b.tar
go-tangerine-d48140cab39923bb06bb4df8667efd2df000d17b.tar.gz
go-tangerine-d48140cab39923bb06bb4df8667efd2df000d17b.tar.bz2
go-tangerine-d48140cab39923bb06bb4df8667efd2df000d17b.tar.lz
go-tangerine-d48140cab39923bb06bb4df8667efd2df000d17b.tar.xz
go-tangerine-d48140cab39923bb06bb4df8667efd2df000d17b.tar.zst
go-tangerine-d48140cab39923bb06bb4df8667efd2df000d17b.zip
Address pull request comments
* Further simplify "constructor" function's allocation of structs * Fix formatting
Diffstat (limited to 'crypto/key_store_plain.go')
-rw-r--r--crypto/key_store_plain.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/crypto/key_store_plain.go b/crypto/key_store_plain.go
index 2aa813f5e..b6e2a309a 100644
--- a/crypto/key_store_plain.go
+++ b/crypto/key_store_plain.go
@@ -54,9 +54,7 @@ func DefaultDataDir() string {
}
func NewKeyStorePlain(path string) KeyStore2 {
- ks := new(keyStorePlain)
- ks.keysDirPath = path
- return ks
+ return &keyStorePlain{path}
}
func (ks keyStorePlain) GenerateNewKey(rand io.Reader, auth string) (key *Key, err error) {