From 00692c66f8fbcd9a11e68e915530ba59194ff602 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 8 Dec 2024 09:22:52 +0800 Subject: Remove another unnecessary anonymous function --- main.go | 4 +--- 1 file changed, 1 insertion(+), 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() }() } -- cgit v1.2.3