From 9bdf790e254b91f2ce19138d53c87e35707eb67a Mon Sep 17 00:00:00 2001 From: Thomas Jager Date: Wed, 12 Feb 2014 08:41:22 +0100 Subject: [PATCH] Fix formats --- irc_callback.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/irc_callback.go b/irc_callback.go index 0630f65..cee0e54 100644 --- a/irc_callback.go +++ b/irc_callback.go @@ -1,13 +1,13 @@ package irc import ( + "crypto/sha1" + "fmt" + "math/rand" + "reflect" "strconv" "strings" "time" - "crypto/sha1" - "fmt" - "reflect" - "math/rand" ) func (irc *Connection) AddCallback(eventcode string, callback func(*Event)) string { @@ -27,7 +27,7 @@ func (irc *Connection) AddCallback(eventcode string, callback func(*Event)) stri func (irc *Connection) RemoveCallback(eventcode string, i string) bool { eventcode = strings.ToUpper(eventcode) - if event, ok := irc.events[eventcode]; ok{ + if event, ok := irc.events[eventcode]; ok { if _, ok := event[i]; ok { delete(irc.events[eventcode], i) return true @@ -43,7 +43,7 @@ func (irc *Connection) RemoveCallback(eventcode string, i string) bool { func (irc *Connection) ClearCallback(eventcode string) bool { eventcode = strings.ToUpper(eventcode) - if _, ok := irc.events[eventcode]; ok{ + if _, ok := irc.events[eventcode]; ok { irc.events[eventcode] = make(map[string]func(*Event)) return true }