diff options
author | Runxi Yu <me@runxiyu.org> | 2024-12-08 09:22:52 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2024-12-08 09:22:52 +0800 |
commit | 00692c66f8fbcd9a11e68e915530ba59194ff602 (patch) | |
tree | b92f91559eb3027dfc29f5f805f9b6935e1c60af /main.go | |
parent | Reformat (diff) | |
download | meseircd-00692c66f8fbcd9a11e68e915530ba59194ff602.tar.gz meseircd-00692c66f8fbcd9a11e68e915530ba59194ff602.tar.zst meseircd-00692c66f8fbcd9a11e68e915530ba59194ff602.zip |
Remove another unnecessary anonymous function
Diffstat (limited to '')
-rw-r--r-- | main.go | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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() }() } |