From d48140cab39923bb06bb4df8667efd2df000d17b Mon Sep 17 00:00:00 2001 From: Gustav Simonsson Date: Mon, 19 Jan 2015 22:12:22 +0100 Subject: Address pull request comments * Further simplify "constructor" function's allocation of structs * Fix formatting --- crypto/key_store_plain.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'crypto/key_store_plain.go') 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) { -- cgit