Permalink
Browse files

gofmt

  • Loading branch information...
1 parent 7ca43a2 commit dce8b2e71ac709c06a2fbe5a4ac06c2c5b7b58fc @miekg committed Oct 10, 2012
Showing with 5 additions and 5 deletions.
  1. +2 −2 dnssec.go
  2. +1 −1 parse_test.go
  3. +1 −1 tlsa.go
  4. +1 −1 tsig.go
View
@@ -165,7 +165,7 @@ func (k *RR_DNSKEY) ToDS(h int) *RR_DS {
owner := make([]byte, 255)
off, err1 := PackDomainName(k.Hdr.Name, owner, 0, nil, false)
- if err1 != nil {
+ if err1 != nil {
return nil
}
owner = owner[:off]
@@ -266,7 +266,7 @@ func (rr *RR_RRSIG) Sign(k PrivateKey, rrset []RR) error {
h = sha512.New()
ch = crypto.SHA512
case RSAMD5:
- fallthrough // Deprecated in RFC 6725
+ fallthrough // Deprecated in RFC 6725
default:
return ErrAlg
}
View
@@ -621,7 +621,7 @@ func TestSRVPacking(t *testing.T) {
}
_, err := msg.Pack()
- if err != nil{
+ if err != nil {
t.Fatalf("Couldn't pack %v\n", msg)
}
}
View
@@ -59,7 +59,7 @@ func (r *RR_TLSA) Verify(cert *x509.Certificate) error {
if r.Certificate == CertificateToDANE(r.Selector, r.MatchingType, cert) {
return nil
}
- return ErrSig // ErrSig, really?
+ return ErrSig // ErrSig, really?
}
// TLSAName returns the ownername of a TLSA resource record as per the
View
@@ -303,7 +303,7 @@ func stripTsig(msg []byte) ([]byte, *RR_TSIG, error) {
rr := new(RR_TSIG)
off := 0
tsigoff := 0
- if off, err = UnpackStruct(&dh, msg, off); err !=nil {
+ if off, err = UnpackStruct(&dh, msg, off); err != nil {
return nil, nil, err
}
if dh.Arcount == 0 {

0 comments on commit dce8b2e

Please sign in to comment.