diff options
author | Robert Griesemer <gri@golang.org> | 2009-11-09 12:07:39 -0800 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2009-11-09 12:07:39 -0800 |
commit | e940edc7a026293153ba09ece40e8092a2fc2463 (patch) | |
tree | c94a425c84b7a48f91a5d76a222effad70c9a88c /src/pkg/crypto/x509 | |
parent | e067f862f1774ab89a2096a88571a94e3b9cd353 (diff) | |
download | golang-e940edc7a026293153ba09ece40e8092a2fc2463.tar.gz |
remove semis after statements in one-statement statement lists
R=rsc, r
http://go/go-review/1025029
Diffstat (limited to 'src/pkg/crypto/x509')
-rw-r--r-- | src/pkg/crypto/x509/x509.go | 6 | ||||
-rw-r--r-- | src/pkg/crypto/x509/x509_test.go | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/pkg/crypto/x509/x509.go b/src/pkg/crypto/x509/x509.go index 87829ec8e..572b4e639 100644 --- a/src/pkg/crypto/x509/x509.go +++ b/src/pkg/crypto/x509/x509.go @@ -26,7 +26,7 @@ type pkcs1PrivateKey struct { // rawValueIsInteger returns true iff the given ASN.1 RawValue is an INTEGER type. func rawValueIsInteger(raw *asn1.RawValue) bool { - return raw.Class == 0 && raw.Tag == 2 && raw.IsCompound == false; + return raw.Class == 0 && raw.Tag == 2 && raw.IsCompound == false } // ParsePKCS1PrivateKey returns an RSA private key from its ASN.1 PKCS#1 DER encoded form. @@ -34,7 +34,7 @@ func ParsePKCS1PrivateKey(der []byte) (key *rsa.PrivateKey, err os.Error) { var priv pkcs1PrivateKey; err = asn1.Unmarshal(&priv, der); if err != nil { - return; + return } if !rawValueIsInteger(&priv.N) || @@ -57,7 +57,7 @@ func ParsePKCS1PrivateKey(der []byte) (key *rsa.PrivateKey, err os.Error) { err = key.Validate(); if err != nil { - return nil, err; + return nil, err } return; } diff --git a/src/pkg/crypto/x509/x509_test.go b/src/pkg/crypto/x509/x509_test.go index 4b2a5ec8a..2c94d35ee 100644 --- a/src/pkg/crypto/x509/x509_test.go +++ b/src/pkg/crypto/x509/x509_test.go @@ -17,10 +17,10 @@ func TestParsePKCS1PrivateKey(t *testing.T) { block, _ := pem.Decode(strings.Bytes(pemPrivateKey)); priv, err := ParsePKCS1PrivateKey(block.Bytes); if err != nil { - t.Errorf("Failed to parse private key: %s", err); + t.Errorf("Failed to parse private key: %s", err) } if !reflect.DeepEqual(priv, rsaPrivateKey) { - t.Errorf("got:%+v want:%+v", priv, rsaPrivateKey); + t.Errorf("got:%+v want:%+v", priv, rsaPrivateKey) } } |