From c31fcaa2a55d850d8f45fb9dc12d86636640e0d9 Mon Sep 17 00:00:00 2001 From: xdavidwu Date: Mon, 5 Jun 2023 19:40:46 +0800 Subject: [PATCH] fix unneeded socket close it will be closed by the defer above --- cmd/docker-credential-himitsu/main.ha | 1 - 1 file changed, 1 deletion(-) diff --git a/cmd/docker-credential-himitsu/main.ha b/cmd/docker-credential-himitsu/main.ha index 8ecd39e..a1c1e50 100644 --- a/cmd/docker-credential-himitsu/main.ha +++ b/cmd/docker-credential-himitsu/main.ha @@ -26,7 +26,6 @@ export fn main() void = { case "list" => list(sock); case => - net::close(sock)!; fmt::fatalf("Usage: {} ", os::args[0]); }; }; -- 2.45.2