From 3eca9a9d3ec47e726a8160afc563761ce238132c Mon Sep 17 00:00:00 2001 From: Mikkel Krautz Date: Fri, 20 May 2011 12:30:31 +0200 Subject: [PATCH] Gofmt run. --- ctlrpc.go | 1 + grumble.go | 2 +- message.go | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ctlrpc.go b/ctlrpc.go index ae6055b..c176f57 100644 --- a/ctlrpc.go +++ b/ctlrpc.go @@ -9,6 +9,7 @@ import ( ) type ControlRPC struct { + } type KeyValuePair struct { diff --git a/grumble.go b/grumble.go index 10f0b12..46356f0 100644 --- a/grumble.go +++ b/grumble.go @@ -209,7 +209,7 @@ func main() { } // win32 special-case if matched, _ := regexp.MatchString("^[0-9]+.old$", name); matched { - sid, _ := strconv.Atoi64(name[0:len(name)-4]) + sid, _ := strconv.Atoi64(name[0 : len(name)-4]) _, exists := servers[sid] if !exists { log.Printf("Recovering lost server %v", name) diff --git a/message.go b/message.go index 3e25fae..3524796 100644 --- a/message.go +++ b/message.go @@ -1307,7 +1307,7 @@ func (server *Server) handleUserStatsMessage(client *Client, msg *Message) { if details { if tlsconn := target.conn.(*tls.Conn); tlsconn != nil { state := tlsconn.ConnectionState() - for i := len(state.PeerCertificates)-1; i >= 0; i-- { + for i := len(state.PeerCertificates) - 1; i >= 0; i-- { stats.Certificates = append(stats.Certificates, state.PeerCertificates[i].Raw) } // fixme(mkrautz): strong certificate checking