aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2024-12-08 09:22:52 +0800
committerRunxi Yu <me@runxiyu.org>2024-12-08 09:22:52 +0800
commit00692c66f8fbcd9a11e68e915530ba59194ff602 (patch)
treeb92f91559eb3027dfc29f5f805f9b6935e1c60af /main.go
parentReformat (diff)
downloadmeseircd-00692c66f8fbcd9a11e68e915530ba59194ff602.tar.gz
meseircd-00692c66f8fbcd9a11e68e915530ba59194ff602.tar.zst
meseircd-00692c66f8fbcd9a11e68e915530ba59194ff602.zip
Remove another unnecessary anonymous function
Diffstat (limited to '')
-rw-r--r--main.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/main.go b/main.go
index 42543f6..96b9b02 100644
--- a/main.go
+++ b/main.go
@@ -42,9 +42,7 @@ func main() {
if err != nil {
slog.Error("cannot make new local client", "error", err)
}
- defer func() {
- client.Teardown()
- }()
+ defer client.Teardown()
client.handleConnection()
}()
}