commit bf85de540b1e80025d26054dd57bd6cfdde20248
parent 871bba5c510a6a315dc33b311cb3edee61a1ed07
Author: Agastya Chandrakant <me@hanabi.in>
Date: Tue, 7 Dec 2021 23:13:37 +0000
refactor
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/irc.go b/irc.go
@@ -11,8 +11,7 @@ func main() {
log.Println("client: connected to: ", conn.RemoteAddr())
ircClient := GetIRCClient(conn)
- err := ircClient.Run() // Run IRC client
- if err != nil {
+ if err := ircClient.Run(); err != nil {
log.Fatal(err)
}
}