From 7cfc31151a5785b63b3c6011760ebc4e6da52416 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Wed, 4 Nov 2009 17:02:30 -0800 Subject: [PATCH] gofmt-ify crypto R=agl CC=rsc http://go/go-review/1017032 --- common.go | 6 ++++-- record_write.go | 10 ++++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/common.go b/common.go index 31bdb84..2145b7b 100644 --- a/common.go +++ b/common.go @@ -106,7 +106,8 @@ func mutualVersion(theirMajor, theirMinor uint8) (major, minor uint8, ok bool) { // A nop implements the NULL encryption and MAC algorithms. type nop struct{} -func (nop) XORKeyStream(buf []byte) {} +func (nop) XORKeyStream(buf []byte) { +} func (nop) Write(buf []byte) (int, os.Error) { return len(buf), nil; @@ -116,7 +117,8 @@ func (nop) Sum() []byte { return nil; } -func (nop) Reset() {} +func (nop) Reset() { +} func (nop) Size() int { return 0; diff --git a/record_write.go b/record_write.go index 241dbec..38135c9 100644 --- a/record_write.go +++ b/record_write.go @@ -74,10 +74,16 @@ func (w *recordWriter) loop(writer io.Writer, appChan <-chan []byte, controlChan } if !closed(appChan) { - go func() { for _ = range appChan {} }(); + go func() { + for _ = range appChan { + } + }(); } if !closed(controlChan) { - go func() { for _ = range controlChan {} }(); + go func() { + for _ = range controlChan { + } + }(); } }